Skip to content

Commit

Permalink
Fixed validateSession called instead of getSessions (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafidMuhymin authored Oct 28, 2023
1 parent ba6f0bb commit 5d71002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/content/main/basics/sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5d71002

Please sign in to comment.