From b1435768acb1b85feaecdaa91b0586e662874422 Mon Sep 17 00:00:00 2001 From: "volcano-staging[bot]" <300623176+volcano-staging[bot]@users.noreply.github.com> Date: Fri, 20 Nov 2026 00:00:41 +0000 Subject: [PATCH] fix: remove access token logging from examples Volcano LavaFlow run d8de43aa-f2ed-4388-aa77-b1b575a97861. --- content/platform/authentication/quickstart.md | 2 +- content/platform/authentication/volcano-sdk.md | 2 +- content/platform/databases/quick-start.md | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/content/platform/authentication/quickstart.md b/content/platform/authentication/quickstart.md index a75ed514..2cb8b8bf 100644 --- a/content/platform/authentication/quickstart.md +++ b/content/platform/authentication/quickstart.md @@ -46,7 +46,7 @@ if (error) { } console.log('User created:', user.id); -console.log('Access token:', session.access_token); +console.log('Session created:', Boolean(session)); ``` The response includes the user object and a session with tokens: diff --git a/content/platform/authentication/volcano-sdk.md b/content/platform/authentication/volcano-sdk.md index efe7cf9f..e8d772d0 100644 --- a/content/platform/authentication/volcano-sdk.md +++ b/content/platform/authentication/volcano-sdk.md @@ -323,7 +323,7 @@ if (error) { window.location.href = '/login'; } else { // Session refreshed, new tokens stored automatically - console.log('New access token:', session.access_token); + console.log('Session refreshed, expires in', session.expires_in, 'seconds'); } ``` diff --git a/content/platform/databases/quick-start.md b/content/platform/databases/quick-start.md index 390bbf61..db2ea0b7 100644 --- a/content/platform/databases/quick-start.md +++ b/content/platform/databases/quick-start.md @@ -54,7 +54,7 @@ const { user, session } = await volcano.auth.signUp({ }); console.log('User ID:', user.id); // This is what auth.uid() returns in database -console.log('Access token:', session.access_token); // Automatically used for queries +console.log('Signed in:', Boolean(session)); // The SDK sends the access token with each query // Or sign in existing user await volcano.auth.signIn({ @@ -217,7 +217,6 @@ const response = await fetch('https://api.yourapp.com/auth/signup', { const { access_token, user } = await response.json(); console.log('User ID:', user.id); -console.log('Access Token:', access_token); // Save access_token for database queries! ```