mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-01 20:06:41 -05:00
feat(phone-number): add attempts check
This commit is contained in:
@@ -115,8 +115,10 @@ export const getSession = <Option extends BetterAuthOptions>() =>
|
||||
sessionDataPayload.signature,
|
||||
);
|
||||
if (!isValid) {
|
||||
deleteSessionCookie(ctx);
|
||||
return ctx.json(null);
|
||||
const dataCookie = ctx.context.authCookies.sessionData.name;
|
||||
ctx.setCookie(dataCookie, "", {
|
||||
maxAge: 0,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user