From 5d71002c812b48edb97bd3288b92c74d00a7adbd Mon Sep 17 00:00:00 2001 From: Rafid Muhymin Wafi Date: Sat, 28 Oct 2023 07:19:13 +0600 Subject: [PATCH] Fixed validateSession called instead of getSessions (#1223) --- documentation/content/main/basics/sessions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {