-
Notifications
You must be signed in to change notification settings - Fork 26
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
No given access token from getUserSession
on automatic refresh
#84
Comments
i have the same problem with keycloak, would be really good if someone could fix it |
I was not able to reproduce this with the example Auth0 config from the docs and beta3. Can you please provide a reproduction or full config? |
I've got the same issue with Zitadel provider. Also automaticRefresh is not wroking for me but I managed to make a custom refresh logic within app.vue onBeforeMount fetch(); |
Although I was not 100% able to reproduce your issues, but a lot of session and refresh related things were fixed with beta 4, please try that and give some feedback on it. |
Using
getUserSession
withexposeAccessToken: true
configured server-side to fetch the current session: When the session is refreshed the returned session data is missing the access token.It seems that the function returns early before exposing the access token:
nuxt-oidc-auth/src/runtime/server/utils/session.ts
Lines 159 to 162 in 1c41ec6
Tried two workarounds which both have issues, not sure if I'm missing something:
getUserSession
which seems to work inconsistently.refreshUserSession
, this seems to return the previous access token.Using Auth0 with
authenticationScheme: "body"
The text was updated successfully, but these errors were encountered: