Initial commit
This commit is contained in:
5
server/api/auth/session.get.ts
Normal file
5
server/api/auth/session.get.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { defineEventHandler } from "h3";
|
||||
import { isAuthenticated } from "../../utils/auth";
|
||||
export default defineEventHandler((event) => ({
|
||||
authenticated: isAuthenticated(event),
|
||||
}));
|
||||
Reference in New Issue
Block a user