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.
 
 
 
 
 

11 lines
305 B

import type { H3Event } from 'h3';
export type WGSession = {
authenticated: boolean;
};
export async function useWGSession(event: H3Event) {
const system = await Database.getSystem();
if (!system) throw new Error('Invalid');
return useSession<Partial<WGSession>>(event, system.sessionConfig);
}