mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-04 05:16:36 -05:00
chore: remove unsued cookies
This commit is contained in:
@@ -62,28 +62,6 @@ export function getCookies(options: BetterAuthOptions) {
|
||||
...(crossSubdomainEnabled ? { domain } : {}),
|
||||
} satisfies CookieOptions,
|
||||
},
|
||||
state: {
|
||||
name: `${secureCookiePrefix}${cookiePrefix}.state`,
|
||||
options: {
|
||||
httpOnly: true,
|
||||
sameSite,
|
||||
path: "/",
|
||||
secure: !!secureCookiePrefix,
|
||||
maxAge: 60 * 15,
|
||||
...(crossSubdomainEnabled ? { domain } : {}),
|
||||
} satisfies CookieOptions,
|
||||
},
|
||||
pkCodeVerifier: {
|
||||
name: `${secureCookiePrefix}${cookiePrefix}.pk_code_verifier`,
|
||||
options: {
|
||||
httpOnly: true,
|
||||
sameSite,
|
||||
path: "/",
|
||||
secure: !!secureCookiePrefix,
|
||||
maxAge: 60 * 15,
|
||||
...(crossSubdomainEnabled ? { domain } : {}),
|
||||
} as CookieOptions,
|
||||
},
|
||||
dontRememberToken: {
|
||||
name: `${secureCookiePrefix}${cookiePrefix}.dont_remember`,
|
||||
options: {
|
||||
@@ -95,17 +73,6 @@ export function getCookies(options: BetterAuthOptions) {
|
||||
...(crossSubdomainEnabled ? { domain } : {}),
|
||||
} as CookieOptions,
|
||||
},
|
||||
nonce: {
|
||||
name: `${secureCookiePrefix}${cookiePrefix}.nonce`,
|
||||
options: {
|
||||
httpOnly: true,
|
||||
sameSite,
|
||||
path: "/",
|
||||
secure: !!secureCookiePrefix,
|
||||
maxAge: 60 * 15,
|
||||
...(crossSubdomainEnabled ? { domain } : {}),
|
||||
} as CookieOptions,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user