You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!req.session){returncallback(newError('OAuth 2.0 authentication requires session support when using state. Did you forget to use express-session middleware?'));}
40
40
41
41
varkey=this._key;
42
-
varstate={
43
-
handle: uid(24),
44
-
code_verifier: verifier
42
+
varhandle=state;
43
+
if(!handle){
44
+
// generate if `state` is not provided when authorization call
if(!req.session){returncallback(newError('OAuth 2.0 authentication requires session support when using state. Did you forget to use express-session middleware?'));}
0 commit comments