diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index 7a18c39..8395e66 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -1,12 +1,11 @@ import { users, Client } from '@kittycad/lib' -export const load = async ({ cookies, event }) => { - console.log('event', event) +export const load = async ({ cookies }) => { let token = cookies.get('__Secure-next-auth.session-token') console.log('token', token) const client = new Client(token) - const response = await users.get_user_self() + const response = await users.get_user_self({ client }) return { user: 'error_code' in response ? undefined : response