You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe export const lucia = new Lucia(); is just a random lucia instance needed to show the example of validating requests. You would need to import the lucia instance from the code example under "Update database" in the page you have linked (if you are following that guide).
Or you can import the Lucia class from 'lucia' import { Lucia } from "lucia";. I think that is what the documentation is missing.
Description
Page: https://lucia-auth.com/tutorials/username-and-password/nextjs-app
Subtitle: Validate requests
the snippet about
lib/auth.ts
showsexport const lucia = new Lucia();
but
Lucia
is not defined at this point, so typescript warnsThe text was updated successfully, but these errors were encountered: