diff --git a/src/backend-worker/handlers/get-session.ts b/src/backend-worker/handlers/get-session.ts index 2b2a8a7..c7af7c3 100644 --- a/src/backend-worker/handlers/get-session.ts +++ b/src/backend-worker/handlers/get-session.ts @@ -1,17 +1,12 @@ import { SessionData } from 'roleypoly/common/types'; import { respond, withSession } from '../utils/api-tools'; -export const GetSession = withSession( - (session?: SessionData) => (): Response => { - const { user, guilds, sessionID } = session || {}; +export const GetSession = withSession((session?: SessionData) => (): Response => { + const { user, guilds, sessionID } = session || {}; - return respond({ - user, - guilds, - sessionID, - }); - }, - { - mustAuthenticate: true, - } -); + return respond({ + user, + guilds, + sessionID, + }); +});