-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout crash again #31
Comments
Hi again, an hint on this issue: is it simply a syntax error? The auth model is defined with attributes "accessTokens" and refreshTokens (see https://github.com/agmoyano/OpenIDConnect/blob/master/index.js#L157), while you check auth.access and auth.refresh (https://github.com/agmoyano/OpenIDConnect/blob/master/index.js#L955 and https://github.com/agmoyano/OpenIDConnect/blob/master/index.js#L916)... |
Experiencing same issue. auth.access is invalid after timeout. Error is: /oidcServer/node_modules/openid-connect/index.js:954 TypeError: Cannot read property 'length' of undefined |
…rrences of auth.refresh to auth.refreshTokens; as originally recommended by steverc in issue agmoyano#31 (related also to agmoyano#28 and agmoyano#33)
Bug fix: auth.access and auth.refresh (issue #31)
(Cannot reopen my previous issue #28 so I opened a new one)
It looks like the fix added in c0965da is not working, I had the crash again: auth object exists, but auth.access is undefined, so access to auth.access.length crashes the server.
My use case is the following: start server, open browser and authenticate, close browser, keep the server running. When timeout expires I have the crash...
The text was updated successfully, but these errors were encountered: