chore: remove mustAuthenticate from get-session

This commit is contained in:
41666 2020-12-17 16:54:56 -05:00
parent bb0987cab9
commit 447876be32

View file

@ -1,8 +1,7 @@
import { SessionData } from 'roleypoly/common/types'; import { SessionData } from 'roleypoly/common/types';
import { respond, withSession } from '../utils/api-tools'; import { respond, withSession } from '../utils/api-tools';
export const GetSession = withSession( export const GetSession = withSession((session?: SessionData) => (): Response => {
(session?: SessionData) => (): Response => {
const { user, guilds, sessionID } = session || {}; const { user, guilds, sessionID } = session || {};
return respond({ return respond({
@ -10,8 +9,4 @@ export const GetSession = withSession(
guilds, guilds,
sessionID, sessionID,
}); });
}, });
{
mustAuthenticate: true,
}
);