Skip to content

Commit

Permalink
Update log severity for Debug Statements in hooks.server.ts (#1233)
Browse files Browse the repository at this point in the history
Remove debug statements
  • Loading branch information
Mythicaeda authored Apr 24, 2024
1 parent 20d32b3 commit 473e024
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const handleSSOAuth: Handle = async ({ event, resolve }) => {
);

if (!validationData.success) {
console.log('Invalid SSO token, redirecting to SSO login UI page');
return new Response(null, {
headers: {
// redirectURL field from gateway response will contain our login UI URL
Expand All @@ -84,8 +83,6 @@ const handleSSOAuth: Handle = async ({ event, resolve }) => {
const roles = await computeRolesFromJWT(user, activeRoleCookie);

if (roles) {
console.log(`successfully SSO'd for user ${user.id}`);

// create and set cookies
const userStr = JSON.stringify(user);
const userCookie = Buffer.from(userStr).toString('base64');
Expand Down

0 comments on commit 473e024

Please sign in to comment.