mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
263 B
10 lines
263 B
import type { H3Event } from 'h3';
|
|
|
|
export type WGSession = {
|
|
authenticated: boolean;
|
|
};
|
|
|
|
export async function useWGSession(event: H3Event) {
|
|
const system = await Database.system.get();
|
|
return useSession<Partial<WGSession>>(event, system.sessionConfig);
|
|
}
|
|
|