Skip to content

Commit

Permalink
Update astro.md (#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
enBonnet committed Sep 16, 2024
1 parent 9ffcd04 commit 0b31689
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/tutorials/username-and-password/astro.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ const username = user.username;
Sign out users by invalidating their session with `Lucia.invalidateSession()`. Make sure to remove their session cookie by setting a blank session cookie created with `Lucia.createBlankSessionCookie()`.

```ts
// pages/api/logout.ts
import { lucia } from "@lib/auth";
import type { APIContext } from "astro";

Expand Down

0 comments on commit 0b31689

Please sign in to comment.