Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ export type ResendParams =
type: Extract<EmailOtpType, 'signup' | 'email_change'>
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
}
Expand Down