From d669da6691dbfc8110d6cffbe5619f2d6e356fbf Mon Sep 17 00:00:00 2001 From: "volcano-staging[bot]" <300623176+volcano-staging[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 03:03:35 +0000 Subject: [PATCH] fix: remove access token logging from examples Volcano LavaFlow run 1fb6ec38-516e-4107-b72b-1e8da12581b4. --- content/platform/authentication/quickstart.md | 1 - content/platform/authentication/volcano-sdk.md | 1 - content/platform/databases/quick-start.md | 2 -- content/sdk/js/error-handling.md | 3 --- 4 files changed, 7 deletions(-) diff --git a/content/platform/authentication/quickstart.md b/content/platform/authentication/quickstart.md index a75ed514..d411d35d 100644 --- a/content/platform/authentication/quickstart.md +++ b/content/platform/authentication/quickstart.md @@ -46,7 +46,6 @@ if (error) { } console.log('User created:', user.id); -console.log('Access token:', session.access_token); ``` 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..bb340a08 100644 --- a/content/platform/authentication/volcano-sdk.md +++ b/content/platform/authentication/volcano-sdk.md @@ -323,7 +323,6 @@ if (error) { window.location.href = '/login'; } else { // Session refreshed, new tokens stored automatically - console.log('New access token:', session.access_token); } ``` diff --git a/content/platform/databases/quick-start.md b/content/platform/databases/quick-start.md index 390bbf61..1c3383a6 100644 --- a/content/platform/databases/quick-start.md +++ b/content/platform/databases/quick-start.md @@ -54,7 +54,6 @@ 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 // Or sign in existing user await volcano.auth.signIn({ @@ -217,7 +216,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! ``` diff --git a/content/sdk/js/error-handling.md b/content/sdk/js/error-handling.md index 666b6134..b13f2cf9 100644 --- a/content/sdk/js/error-handling.md +++ b/content/sdk/js/error-handling.md @@ -138,12 +138,10 @@ if (AuthRefreshDiscardedError.is(error)) { // Auth state changed while this request was pending. Read the current state // or ask the user to retry; do not automatically replay a mutation. const { data } = await volcano.auth.getSession(); - console.log('Current session:', data.session); } else if (AuthSessionChangedError.is(error)) { // The user response belongs to a session that was replaced while the // request was pending. const { data } = await volcano.auth.getSession(); - console.log('Current session:', data.session); } else if (error) { console.error('Unable to load the user:', error.message); } else { @@ -167,7 +165,6 @@ const { user, error } = await volcano.auth.signIn({ if (AuthSessionChangedError.is(error)) { const { data } = await volcano.auth.getSession(); - console.log('Another auth operation established:', data.session); } else if (error) { console.error('Sign-in failed:', error.message); } else {