fix(ws): fixed websocket authentication

This commit is contained in:
DecDuck
2024-11-16 18:28:38 +11:00
parent f7d767d73e
commit 62ea9a116b
4 changed files with 42 additions and 10 deletions

View File

@ -43,6 +43,10 @@ export class SessionHandler {
return token;
}
getDropTokenCookie() {
return dropTokenCookie;
}
async getSession<T extends Session>(h3: H3Event) {
const token = this.getSessionToken(h3);
if (!token) return undefined;