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