From 0b3168993109c01a58c1adeb40fada98f89b553a Mon Sep 17 00:00:00 2001 From: Ender Bonnet <13243693+enBonnet@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:35:06 -0300 Subject: [PATCH] Update astro.md (#1697) --- docs/pages/tutorials/username-and-password/astro.md | 1 + 1 file changed, 1 insertion(+) 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";