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,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,
});
});