npm login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { lucia } from "@/lib/lucia"; | |
| import Elysia from "elysia"; | |
| import { verifyRequestOrigin } from "lucia"; | |
| import type { User, Session } from "lucia"; | |
| /** | |
| * Use this middleware where you want to check if a user is authenticated. | |
| * | |
| * As a black box, you'll be able to see if the user is authenticated via |
NewerOlder