mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 15:52:39 +10:00
fix(ws): fixed websocket authentication
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user