Refresh schema not logging user in automatically #1534
Unanswered
sts-ryan-holton
asked this question in
Support Requests
Replies: 1 comment
-
@ArzelaAscoIi Could you provide some insight here? Just tried updating my config to the following with no luck:
Log in request is successful, but no user set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version
module: 5.0.0-1624817847.21691f1
nuxt: 2.15.8
Nuxt configuration
mode:
Nuxt configuration
Additional information
Checklist
Steps to reproduce
What is expected?
When a user logs in with the correct credentials and the
login
route is hit, theuser
endpoint should be fetched automatically when used with therefresh
schema.What is actually happening?
In my Nuxt project with the Auth module I'd like to utilise the
refresh
schema to automatically refresh a token, previously without providing theschema
option andrefresh
endpoint logging in would make a request to thelogin
endpoint, fetch theuser
automatically and log me in successfully along with redirecting me.However, when adding:
scheme: 'refresh'
refresh: { url: '/api/account/refresh', method: 'post', }
the functionality appears to not be fetching my user and automatically logging me in.
My
/api/account/refresh
endpoint in my API returns the following:My
/api/account/login
endpoint in my API returns the following:What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions