diff --git a/documentation/content/main/basics/sessions.md b/documentation/content/main/basics/sessions.md index faa837ba8..1d7432b9a 100644 --- a/documentation/content/main/basics/sessions.md +++ b/documentation/content/main/basics/sessions.md @@ -147,7 +147,7 @@ import { auth } from "./lucia.js"; import { LuciaError } from "lucia"; try { - const session = await auth.validateSession(sessionId); + const session = await auth.getSession(sessionId); if (session.state === "active") { // valid sessions } else {