Skip to content

Commit

Permalink
more console logs
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Oct 18, 2023
1 parent 1aa5acd commit 8527877
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { users, Client } from '@kittycad/lib'

/** @type {import('./$types').LayoutData} */
export const load = async ({ cookies }) => {
let token = cookies.get('__Secure-next-auth.session-token')

Check failure on line 5 in src/routes/+layout.server.ts

View workflow job for this annotation

GitHub Actions / types-lint-build

'token' is never reassigned. Use 'const' instead
console.log('token', token)

const client = new Client(token)
console.log('client', client)
const response = await users.get_user_self({ client })

console.log('response', response)
console.log('response', response)

return {
user: 'error_code' in response ? undefined : response
user: 'error_code' in response ? { user: undefined } : response
}
}

0 comments on commit 8527877

Please sign in to comment.