mirror of https://github.com/wg-easy/wg-easy
6 changed files with 26 additions and 5 deletions
@ -0,0 +1,9 @@ |
|||
import type { H3Event } from 'h3'; |
|||
|
|||
export type WGSession = { |
|||
authenticated: boolean |
|||
} |
|||
|
|||
export function useWGSession(event: H3Event) { |
|||
return useSession<Partial<WGSession>>(event, SESSION_CONFIG); |
|||
} |
Loading…
Reference in new issue