Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 44af61e

Browse files
authored
fix: add emailRedirectTo option to resend method (#724)
1 parent 0f04bfc commit 44af61e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/GoTrueClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ export default class GoTrueClient {
735735
type,
736736
gotrue_meta_security: { captcha_token: options?.captchaToken },
737737
},
738+
redirectTo: options?.emailRedirectTo,
738739
})
739740
return { data: { user: null, session: null }, error }
740741
} else if ('phone' in credentials) {

src/lib/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,8 @@ export type ResendParams =
552552
type: Extract<EmailOtpType, 'signup' | 'email_change'>
553553
email: string
554554
options?: {
555+
/** A URL to send the user to after they have signed-in. */
556+
emailRedirectTo?: string
555557
/** Verification token received when the user completes the captcha on the site. */
556558
captchaToken?: string
557559
}

0 commit comments

Comments
 (0)