mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-27 17:36:42 -05:00
fix: forget password flow failing because of id conversion (#2083)
This commit is contained in:
@@ -109,7 +109,7 @@ export const forgetPassword = createAuthEndpoint(
|
||||
);
|
||||
const verificationToken = generateId(24);
|
||||
await ctx.context.internalAdapter.createVerificationValue({
|
||||
value: user.user.id.toString(),
|
||||
value: user.user.id,
|
||||
identifier: `reset-password:${verificationToken}`,
|
||||
expiresAt,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user