-
Notifications
You must be signed in to change notification settings - Fork 65
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
Exception on getOidcUser if not logged in #192
Comments
Sorry about this, it looks like a mistake. I’m on the road right now, but will fix this by the end of the month. Meanwhile you will have to roll back to v3.10.3 to get rid of this errror. |
@dr-waterstorm This should be fixed now in v3.11.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've used vuex-oidc for quite some time in our application and it's a really nice library. Thanks a lot for your work!
If a user comes to our application we use
getOidcUser
to check if the user has an "old" login. However, after the last update the application always throws an error when callinggetOidcUser
while not logged in:This is cause by:
vuex-oidc/src/store/create-store-module.js
Line 423 in d6c667f
Because even if the user is null, it still tries to access
user.expires_at
which then fails with an error.Is this on purpose or is there simply a check missing? If so, I suggest adding a check or something similar to prevent the library from throwing this error when trying to get the user while not logged in.
Thank you!
The text was updated successfully, but these errors were encountered: