docs(expo): update useSSO reference for core-3 and redirect URL requirements#3234
docs(expo): update useSSO reference for core-3 and redirect URL requirements#3234chriscanin wants to merge 8 commits intomainfrom
Conversation
… URL requirements
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This docs PR relies on a JS change, status has been set to do not merge so that merge can be completed once JS has been merged in: |
| > [!IMPORTANT] | ||
| > The redirect URL used by `useSSO()` must be registered in the Clerk Dashboard under **Redirect URLs**. If not registered, the OAuth flow will complete but the session will not be created. See [Redirect URL configuration](#redirect-url-configuration) for details. |
There was a problem hiding this comment.
I think we can remove this callout and instead put the link in the description of the redirectUrl prop, see the comment there!
| }) | ||
| ``` | ||
|
|
||
| Then register `myapp://sso-callback` in the Dashboard. This works in both Expo Go and development builds. |
There was a problem hiding this comment.
| Then register `myapp://sso-callback` in the Dashboard. This works in both Expo Go and development builds. | |
| Then register `myapp://sso-callback` in the Clerk Dashboard. This works in both Expo Go and development builds. |
alexisintech
left a comment
There was a problem hiding this comment.
here's a quick high level review after reading through it once.
that last section may need some reworking! we can hop on a call so you can explain it to me a little more - and we can loop @SarahSoutoul in as well so she can hear about it too! and we can all work on it together :)
|
Thank you for the review @alexisintech , I will get this updated today and then maybe @SarahSoutoul can give it a readthrough as well for a final check. |
|
|
||
| - `setActive?` | ||
| - `(params: SetActiveParams) => Promise<void>` | ||
| ## Redirect URL configuration |
There was a problem hiding this comment.
@chriscanin @alexisintech For this last section, here are my thoughts:
- The section is technically correct, but the current structure is a bit confusing because it presents "development builds" and "Expo Go" as separate setups, when in practice we want users to follow a single consistent approach. Specifically, because the Expo Go solution actually works in both environment and seems to be the most reliable approach.
- My suggested improvement is to restructure this section around one recommended setup (custom scheme + explicit
redirectUrl). Sth like: here is the recommended setup and works everywhere (the primary path essentially) and then you can explain why this is needed especially for Expo Go (dynamicexp://)
I'm not sure if this is what you were referring to @alexisintech when you talked about restructuring this, but if we agree with this approach, I've got the changes locally that I could push as docs review.
There was a problem hiding this comment.
Okay great. @chriscanin how do you feel about this layout?
There was a problem hiding this comment.
Layout looks good here!
See comment here on reworking last section. |
This is looking good! I think there is a user that will benefit from these changes, I will make sure to connect with them and point this out (I think they are having an issue with useSSO and expo go). Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
This did not get pushed through, doing so now. Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
|
looking at fix(expo): migrate useSSO to core-3 and fix browser dismissal for OAuth/SSO flows
|
|
|
@chriscanin I've updated the existing examples to follow these new requirements, and updated the redirect URL configuration section to fully clarify why certain steps need to be done |
6ae01c5 to
7f7eee2
Compare
chriscanin
left a comment
There was a problem hiding this comment.
Looking good @alexisintech
for the response to the comment you had left:
Yes, the stable redirect URL using the scheme would be myapp://sso-callback (where myapp is whatever the user has set as their scheme in app.json). That's what they'd register in the Clerk Dashboard under Redirect URLs.
This works in both Expo Go and dev builds because ASWebAuthenticationSession intercepts the custom scheme regardless of whether it's registered in Info.plist.

Summary
Updates the
useSSO()hook reference to reflect the core-3 migration in clerk/javascript#8140:setActive,signIn,signUp)authSessionOptionsparameter documentationRelated
🤖 Generated with Claude Code