Skip to content

Commit

Permalink
fix sveltekit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Sep 26, 2024
1 parent 97ffd91 commit 530d473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/sessions/cookies/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const handle: Handle = async ({ event, resolve }) => {
if (token === null) {
event.locals.user = null;
event.locals.session = null;
return resolve();
return resolve(event);
}

const { session, user } = await validateSessionToken(token);
Expand All @@ -119,7 +119,7 @@ export const handle: Handle = async ({ event, resolve }) => {

event.locals.session = session;
event.locals.user = user;
return resolve();
return resolve(event);
};
```

Expand Down

0 comments on commit 530d473

Please sign in to comment.