mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
chore: remove mustAuthenticate from get-session
This commit is contained in:
parent
bb0987cab9
commit
447876be32
1 changed files with 8 additions and 13 deletions
|
@ -1,8 +1,7 @@
|
|||
import { SessionData } from 'roleypoly/common/types';
|
||||
import { respond, withSession } from '../utils/api-tools';
|
||||
|
||||
export const GetSession = withSession(
|
||||
(session?: SessionData) => (): Response => {
|
||||
export const GetSession = withSession((session?: SessionData) => (): Response => {
|
||||
const { user, guilds, sessionID } = session || {};
|
||||
|
||||
return respond({
|
||||
|
@ -10,8 +9,4 @@ export const GetSession = withSession(
|
|||
guilds,
|
||||
sessionID,
|
||||
});
|
||||
},
|
||||
{
|
||||
mustAuthenticate: true,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue