mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-02-27 03:51:17 +00:00
8 lines
217 B
TypeScript
8 lines
217 B
TypeScript
import { getApi } from "../utils/bknd";
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
const api = await getApi({ verify: true, headers: event.headers });
|
|
const user = api.getUser();
|
|
return { user };
|
|
});
|