mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
6 lines
208 B
TypeScript
6 lines
208 B
TypeScript
import { AuthContext } from "~/server/middleware/01-authorization";
|
|
|
|
export default defineEventHandler(async event => {
|
|
const userData: AuthContext = getRequestUser(event) as any;
|
|
return userData;
|
|
}); |