Update hooks.server.ts
This commit is contained in:
parent
4c60a3ca91
commit
bcc12e3fad
1 changed files with 0 additions and 1 deletions
|
|
@ -24,7 +24,6 @@ export const handle: Handle = async ({ event, resolve }) => {
|
|||
|
||||
const rawToken = event.cookies.get(COOKIE_NAME_AUTH_TOKEN);
|
||||
const isValid = rawToken ? await verifyJwt(rawToken, PRIVATE_JWT_SECRET) : false;
|
||||
console.log({ isValid });
|
||||
event.locals.authToken = isValid ? rawToken! : null;
|
||||
|
||||
if (isValid && rawToken) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue