mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-14 22:56:42 +10:00
4 lines
133 B
TypeScript
4 lines
133 B
TypeScript
export default defineEventHandler(async (h3) => {
|
|
const user = await h3.context.session.getUser(h3);
|
|
return user ?? null;
|
|
}); |