Skip to content

feat(quickstart): add SSO button using core-3 useSSO hook#31

Open
chriscanin wants to merge 1 commit intomainfrom
chris/fix-expo-sso-core3
Open

feat(quickstart): add SSO button using core-3 useSSO hook#31
chriscanin wants to merge 1 commit intomainfrom
chris/fix-expo-sso-core3

Conversation

@chriscanin
Copy link
Member

Summary

Adds an SSO button to the JSOnlyQuickstart sign-in page demonstrating the simplified useSSO() API from core-3.

The button uses the new API where the hook handles everything internally:

const { startSSOFlow } = useSSO()
await startSSOFlow({ strategy: 'oauth_google' })
// Session is now active — no setActive() needed

The SSOButton component is strategy-agnostic and can be reused for any OAuth provider.

Note

Requires the redirect URL to be registered in the Clerk Dashboard. See the useSSO reference for details.

Related

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant