perarnborg / vuex-oidc

Vuejs (with vuex) wrapper for open id authentication
MIT License
232 stars 65 forks source link

Expose UserManager #138

Open GordonBlahut opened 3 years ago

GordonBlahut commented 3 years ago

Is it possible to expose access to the UserManager for lower level access (even if it's marked as not-recommended/at your own risk, etc.)? For example, to workaround a limitation in oidc-client where the claims are not refreshed after silent renew for clients using refresh tokens: https://github.com/IdentityModel/oidc-client-js/issues/1034

perarnborg commented 3 years ago

Yes, I can see the point in this. What you would want is to expose the actual instance of the UserManager that is used by this package, right?

If you want to only do things like setting log level this can be done by importing UserManager from oidc-client.

GordonBlahut commented 3 years ago

That's right. My understanding is that it's better not to have multiple UserManager instances at the same time so it would be ideal to get a reference to the same instance.

perarnborg commented 3 years ago

Just wanted to state that I am planning to implement this, but I have not found the time for it.