Skip to content

Commit 95ca8ef

Browse files
committed
Remove noisy OIDC related logging
1 parent 9833bdf commit 95ca8ef

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/hooks.server.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { computeRolesFromCookies, computeRolesFromJWT } from './utilities/auth';
99
import { reqGatewayForwardCookies } from './utilities/requests';
1010

1111
export const handle: Handle = async ({ event, resolve }) => {
12-
console.log('HOOKS IS ALSO RUNNING!');
13-
1412
if (event.url.pathname.includes('com.chrome.devtools')) {
1513
return new Response(null, { status: 204 });
1614
}
@@ -97,11 +95,11 @@ const handleJWTAuth: Handle = async ({ event, resolve }) => {
9795
return event.url.pathname.includes('/login') || event.url.pathname.includes('/auth')
9896
? await resolve(event)
9997
: new Response(null, {
100-
headers: {
101-
location: `${base}/login`,
102-
},
103-
status: 307,
104-
});
98+
headers: {
99+
location: `${base}/login`,
100+
},
101+
status: 307,
102+
});
105103
};
106104

107105
const handleSSOAuth: Handle = async ({ event, resolve }) => {

src/routes/+layout.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import { gqlWsClient, userStore } from '../lib/stores/auth';
77
import { getClientOptions } from '../stores/subscribable';
88

99
export const load: LayoutLoad = async ({ data }) => {
10-
console.log('RUNNING LAYOUT.TS!!!');
1110
if (browser) {
12-
console.log('SETTING userStore NOW', JSON.stringify(data.user));
1311
userStore.set(data.user);
1412
gqlWsClient.set(createClient(getClientOptions()));
1513
}

0 commit comments

Comments
 (0)