Passkeys & verification Model, expiresAt always in past

With 1.2.7 I do not get passkeys login working anymore. In the database verification table I see expiresAt always have the same timestamp for each passkey createVerificationValue request (2025-04-16 10:07:45.958). This is in the past and I think this is the cause the browser do not start the webauthn process. Looks like at starting next.js server it's resulting into static timestamp of that moment. It does not recalculate the expirationTime for each createVerificationValue request. In code I found:
const expirationTime = new Date(Date.now() + 1e3 * 60 * 5);
const expirationTime = new Date(Date.now() + 1e3 * 60 * 5);
This should provide a timestamp in the future. Why does expirationTime not recalculated at every createVerificationValue request? i'm using prisma 6.6.0 (not using output path) and postgresql database.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?