Skip to content

Commit

Permalink
Debug website roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Pavlovskiy committed Aug 12, 2023
1 parent 35a80dc commit cd8e32f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/website/utils/session/getSharedSessionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const getSharedSessionData = async (req: IncomingMessage): Promise<SharedSession
})
| null;

console.log("SESSION ROLES:");
console.log(session?.roles);

const isManager = session?.roles?.includes("manager") || false;
const idToken = session?.tokenSet?.idToken || null;
const needsReservations = hasCookie(RESERVATION_COOKIE_NAME, { req });
Expand Down

0 comments on commit cd8e32f

Please sign in to comment.