mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 16:36:34 -05:00
fix(next-cookies): leaks unnecessary cookie (#8193)
This commit is contained in:
@@ -47,6 +47,8 @@ export const nextCookies = () => {
|
||||
}
|
||||
try {
|
||||
cookieStore.set("__better-auth-cookie-store", "1", { maxAge: 0 });
|
||||
// If cookie was set successfully, we should clean up.
|
||||
cookieStore.delete("__better-auth-cookie-store");
|
||||
} catch {
|
||||
await setShouldSkipSessionRefresh(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user