chore: return early on invalid cookie

This commit is contained in:
Bereket Engida
2025-05-15 20:08:44 -07:00
parent e9bc7fcf7e
commit eec052c787
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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);
}
}