Closed dnikomon closed 3 years ago
Also I don't know if it's me only but in my environment req is more like Express.Request and not at all like http.IncomingMessage
I'm an idiot so I don't understand how this explains my problem. I need to access session in callback so I have to do casting like const customReq = (req as unknown) as Request
to access it.
Describe the bug
usePKCE & sessionKey have same annotation
function OpenIDConnectStrategy({ client, params = {}, passReqToCallback = false, sessionKey, usePKCE = true, extras = {}, }
Also usePKCE default is true in code and false in documentation
export type StrategyVerifyCallbackReq<TUser> = (req: http.IncomingMessage, tokenset: TokenSet, done: (err: any, user?: TUser) => void) => void;
Also I don't know if it's me only but in my environment req is more like Express.Request and not at all like http.IncomingMessage
Environment:
openid-client version: 4.4.0
node version: ">=12.4.0"
[x] the bug is happening on latest openid-client too.
[x] i have searched the issues tracker on github for similar issues and couldn't find anything related.