Remove unnecessary exports (#2006)

This commit is contained in:
ekzyis 2025-03-21 19:56:01 -05:00 committed by GitHub
parent 5e2185c18f
commit 5ff1334722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ export function setMultiAuthCookies (req, res, { id, jwt, name, photoId }) {
res.appendHeader('Set-Cookie', cookie.serialize('multi_auth', b64Encode(newMultiAuth), jsOptions)) res.appendHeader('Set-Cookie', cookie.serialize('multi_auth', b64Encode(newMultiAuth), jsOptions))
} }
export function switchSessionCookie (request) { function switchSessionCookie (request) {
// switch next-auth session cookie with multi_auth cookie if cookie pointer present // switch next-auth session cookie with multi_auth cookie if cookie pointer present
// is there a cookie pointer? // is there a cookie pointer?
@ -80,7 +80,7 @@ export function switchSessionCookie (request) {
return request return request
} }
export function checkMultiAuthCookies (req, res) { function checkMultiAuthCookies (req, res) {
if (!req.cookies.multi_auth || !req.cookies['multi_auth.user-id']) { if (!req.cookies.multi_auth || !req.cookies['multi_auth.user-id']) {
return false return false
} }
@ -95,7 +95,7 @@ export function checkMultiAuthCookies (req, res) {
return true return true
} }
export function resetMultiAuthCookies (req, res) { function resetMultiAuthCookies (req, res) {
const httpOnlyOptions = cookieOptions({ expires: 0, maxAge: 0 }) const httpOnlyOptions = cookieOptions({ expires: 0, maxAge: 0 })
const jsOptions = { ...httpOnlyOptions, httpOnly: false } const jsOptions = { ...httpOnlyOptions, httpOnly: false }
@ -110,7 +110,7 @@ export function resetMultiAuthCookies (req, res) {
} }
} }
export async function refreshMultiAuthCookies (req, res) { async function refreshMultiAuthCookies (req, res) {
const httpOnlyOptions = cookieOptions() const httpOnlyOptions = cookieOptions()
const jsOptions = { ...httpOnlyOptions, httpOnly: false } const jsOptions = { ...httpOnlyOptions, httpOnly: false }