#1020·passport

使用 AuthenticationCallback/req.logIn() 在 0.7.0 中会导致反序列化失败

作者: Mark-Elliott5创建于 2024年3月10日更新于 2025年6月13日

import WebSocket from 'ws'; import { IReq } from '../types/express';

function websocketHandler(ws: WebSocket, req: IReq) { ws.on('message', function (msg: WebSocket.RawData) { console.log(req.user); //

内容来源: jaredhanson/passport