Skip to content

Commit

Permalink
Pass identifier when creating sign in
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraBeatris committed Jan 13, 2025
1 parent dfd309d commit 865c3a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/expo/src/hooks/useSso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type UseSsoParams = {
export type StartSsoParams = {
redirectUrl?: string;
unsafeMetadata?: SignUpUnsafeMetadata;
identifier?: string;
};

export type StartSsoFlowReturnType = {
Expand Down Expand Up @@ -57,7 +58,7 @@ export function useSso(useSsoParams: UseSsoParams) {
path: 'sso-native-callback',
});

await signIn.create({ strategy, redirectUrl: oauthRedirectUrl });
await signIn.create({ strategy, redirectUrl: oauthRedirectUrl, identifier: startSsoFlowParams?.identifier });

const { externalVerificationRedirectURL } = signIn.firstFactorVerification;

Expand Down

0 comments on commit 865c3a3

Please sign in to comment.