Skip to content

Commit eb7fa07

Browse files
Use the configured passwordResetUrl in auth-nextjs (#784)
1 parent 71c8b88 commit eb7fa07

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/auth-nextjs/src/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ export class NextAppAuth extends NextAuth {
466466
}
467467
},
468468
emailPasswordSendPasswordResetEmail: async (
469-
data: FormData | { email: string; resetUrl: string }
469+
data: FormData | { email: string }
470470
) => {
471471
if (!this.options.passwordResetUrl) {
472472
throw new Error(`'passwordResetUrl' option not configured`);

packages/auth-nextjs/src/shared.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export abstract class NextAuth {
2424
authCookieName: options.authCookieName ?? "edgedb-session",
2525
pkceVerifierCookieName:
2626
options.pkceVerifierCookieName ?? "edgedb-pkce-verifier",
27+
passwordResetUrl: options.passwordResetUrl,
2728
};
2829
}
2930

0 commit comments

Comments
 (0)