Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/platform/authentication/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion content/platform/authentication/volcano-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
```

Expand Down
3 changes: 1 addition & 2 deletions content/platform/databases/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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!
```

Expand Down
Loading