diff --git a/packages/auth-nextjs/src/app/index.ts b/packages/auth-nextjs/src/app/index.ts index 7cbc41fdc..8f46141c9 100644 --- a/packages/auth-nextjs/src/app/index.ts +++ b/packages/auth-nextjs/src/app/index.ts @@ -466,7 +466,7 @@ export class NextAppAuth extends NextAuth { } }, emailPasswordSendPasswordResetEmail: async ( - data: FormData | { email: string; resetUrl: string } + data: FormData | { email: string } ) => { if (!this.options.passwordResetUrl) { throw new Error(`'passwordResetUrl' option not configured`); diff --git a/packages/auth-nextjs/src/shared.ts b/packages/auth-nextjs/src/shared.ts index ef7351b86..0b8148dfd 100644 --- a/packages/auth-nextjs/src/shared.ts +++ b/packages/auth-nextjs/src/shared.ts @@ -24,6 +24,7 @@ export abstract class NextAuth { authCookieName: options.authCookieName ?? "edgedb-session", pkceVerifierCookieName: options.pkceVerifierCookieName ?? "edgedb-pkce-verifier", + passwordResetUrl: options.passwordResetUrl, }; }