mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
chore: return early on invalid cookie
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||
@@ -117,6 +117,7 @@ export const getSession = <Option extends BetterAuthOptions>() =>
|
||||
ctx.setCookie(dataCookie, "", {
|
||||
maxAge: 0,
|
||||
});
|
||||
return ctx.json(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user