diff --git a/docs/pages/tutorials/username-and-password/astro.md b/docs/pages/tutorials/username-and-password/astro.md index 5627e4394..0aa55e00d 100644 --- a/docs/pages/tutorials/username-and-password/astro.md +++ b/docs/pages/tutorials/username-and-password/astro.md @@ -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";