You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Expo supports [SAML](/docs/authentication/enterprise-connections/overview#saml) Enterprise SSO, but does not support [OIDC](/docs/authentication/enterprise-connections/overview#oidc).
78
+
79
+
The following example **will both sign up _and_ sign in users**, eliminating the need for a separate sign-up page.
80
+
81
+
The following example:
82
+
83
+
1. Accesses the `startSSOFlow()` method using the [`useSSO()`](/docs/references/expo/use-sso) hook.
84
+
1. Calls the `startSSOFlow()` method with the `strategy` param set to `enterprise_sso` and the `identifier` param set to the user's email address that they provided.
85
+
- If authentication is successful, the `setActive()` method is called to set the active session with the new `createdSessionId`.
86
+
- If authentication is not successful, you can handle the missing requirements, such as MFA, using the [`signIn`](/docs/references/javascript/sign-in/sign-in) or [`signUp`](/docs/references/javascript/sign-up/sign-up) object returned from `startSSOFlow()`, depending on if the user is signing in or signing up. These objects include properties, like `status`, that can be used to determine the next steps. See the respective linked references for more information.
Copy file name to clipboardExpand all lines: docs/custom-flows/oauth-connections.mdx
+67-1Lines changed: 67 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,73 @@ You must configure your application instance through the Clerk Dashboard for the
70
70
</Tab>
71
71
72
72
<Tab>
73
-
<Includesrc="_partials/expo/oauth-custom-flow" />
73
+
The following example **will both sign up _and_ sign in users**, eliminating the need for a separate sign-up page.
74
+
75
+
The following example:
76
+
77
+
1. Accesses the `startSSOFlow()` method using the [`useSSO()`](/docs/references/expo/use-sso) hook.
78
+
1. Calls the `startSSOFlow()` method with the `strategy` param set to `oauth_google`, but you can use any of the [supported OAuth strategies](/docs/references/javascript/types/sso#oauth-strategy).
79
+
- If authentication is successful, the `setActive()` method is called to set the active session with the new `createdSessionId`.
80
+
- If authentication is not successful, you can handle the missing requirements, such as MFA, using the [`signIn`](/docs/references/javascript/sign-in/sign-in) or [`signUp`](/docs/references/javascript/sign-up/sign-up) object returned from `startSSOFlow()`, depending on if the user is signing in or signing up. These objects include properties, like `status`, that can be used to determine the next steps. See the respective linked references for more information.
0 commit comments