free agents
This commit is contained in:
@@ -60,6 +60,7 @@ export const verifySuperTokensSession = async (
|
||||
userAuthId,
|
||||
roles,
|
||||
metadata,
|
||||
phone: session.phone,
|
||||
session: {
|
||||
accessTokenPayload: session.accessTokenPayload,
|
||||
sessionHandle: session.sessionHandle,
|
||||
@@ -68,7 +69,7 @@ export const verifySuperTokensSession = async (
|
||||
};
|
||||
};
|
||||
|
||||
export const getSessionContext = async (request: Request, options?: { isServerFunction?: boolean }): Promise<any> => {
|
||||
export const getSessionContext = async (request: Request, options?: { isServerFunction?: boolean }) => {
|
||||
const session = await verifySuperTokensSession(request);
|
||||
|
||||
if (session.context.session?.tryRefresh) {
|
||||
@@ -93,6 +94,7 @@ export const getSessionContext = async (request: Request, options?: { isServerFu
|
||||
userAuthId: session.context.userAuthId,
|
||||
roles: session.context.roles,
|
||||
metadata: session.context.metadata,
|
||||
phone: session.context.phone
|
||||
};
|
||||
|
||||
return context;
|
||||
|
||||
Reference in New Issue
Block a user