mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 12:06:35 +08:00
fix(server): use post request to consume magic link token (#6656)
This commit is contained in:
@@ -26,7 +26,7 @@ export function getRequestResponseFromHost(host: ArgumentsHost) {
|
||||
const ws = host.switchToWs();
|
||||
const req = ws.getClient<Socket>().client.conn.request as Request;
|
||||
|
||||
const cookieStr = req?.headers?.cookie;
|
||||
const cookieStr = req?.headers?.cookie ?? '';
|
||||
// patch cookies to match auth guard logic
|
||||
if (typeof cookieStr === 'string') {
|
||||
req.cookies = cookieStr.split(';').reduce(
|
||||
|
||||
Reference in New Issue
Block a user