From 5ff13347228f3946bf9ff85c83645156ed6d8748 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 21 Mar 2025 19:56:01 -0500 Subject: [PATCH] Remove unnecessary exports (#2006) --- lib/auth.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/auth.js b/lib/auth.js index 19342132..21ebe84f 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -43,7 +43,7 @@ export function setMultiAuthCookies (req, res, { id, jwt, name, photoId }) { 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 // is there a cookie pointer? @@ -80,7 +80,7 @@ export function switchSessionCookie (request) { return request } -export function checkMultiAuthCookies (req, res) { +function checkMultiAuthCookies (req, res) { if (!req.cookies.multi_auth || !req.cookies['multi_auth.user-id']) { return false } @@ -95,7 +95,7 @@ export function checkMultiAuthCookies (req, res) { return true } -export function resetMultiAuthCookies (req, res) { +function resetMultiAuthCookies (req, res) { const httpOnlyOptions = cookieOptions({ expires: 0, maxAge: 0 }) 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 jsOptions = { ...httpOnlyOptions, httpOnly: false }