feature plus ux rearrangements
This commit is contained in:
@@ -21,4 +21,12 @@ export function setSessionCookie(cookies: Cookies, token: string) {
|
||||
|
||||
export function clearSessionCookie(cookies: Cookies) {
|
||||
cookies.delete(SESSION_COOKIE, { path: '/' });
|
||||
}
|
||||
|
||||
// Legacy pre-PB-auth child cookie. No longer issued anywhere; these deletes
|
||||
// exist only to scrub it from browsers that still carry one.
|
||||
const LEGACY_DEVICE_COOKIE = 'device_token';
|
||||
|
||||
export function clearLegacyCookies(cookies: Cookies) {
|
||||
cookies.delete(LEGACY_DEVICE_COOKIE, { path: '/' });
|
||||
}
|
||||
Reference in New Issue
Block a user