Skip to content

Commit

Permalink
Update sveltekit oauth tutorial (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlehrer authored Feb 14, 2024
1 parent be871bc commit cc363e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/tutorials/github-oauth/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ export const actions: Actions = {
if (!event.locals.session) {
return fail(401);
}
await auth.invalidateSession(event.locals.session.id);
await lucia.invalidateSession(event.locals.session.id);
const sessionCookie = lucia.createBlankSessionCookie();
context.cookies.set(sessionCookie.name, sessionCookie.value, {
event.cookies.set(sessionCookie.name, sessionCookie.value, {
path: ".",
...sessionCookie.attributes
});
Expand Down

0 comments on commit cc363e4

Please sign in to comment.