diff --git a/src/GoTrueClient.ts b/src/GoTrueClient.ts index 371dba9c..79d644bf 100644 --- a/src/GoTrueClient.ts +++ b/src/GoTrueClient.ts @@ -735,6 +735,7 @@ export default class GoTrueClient { type, gotrue_meta_security: { captcha_token: options?.captchaToken }, }, + redirectTo: options?.emailRedirectTo, }) return { data: { user: null, session: null }, error } } else if ('phone' in credentials) { diff --git a/src/lib/types.ts b/src/lib/types.ts index 00b07f60..5a392e68 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -552,6 +552,8 @@ export type ResendParams = type: Extract email: string options?: { + /** A URL to send the user to after they have signed-in. */ + emailRedirectTo?: string /** Verification token received when the user completes the captcha on the site. */ captchaToken?: string }