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
Uh oh!
There was an error while loading. Please reload this page.
-
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
loginroute is hit, theuserendpoint should be fetched automatically when used with therefreshschema.What is actually happening?
In my Nuxt project with the Auth module I'd like to utilise the
refreshschema to automatically refresh a token, previously without providing theschemaoption andrefreshendpoint logging in would make a request to theloginendpoint, fetch theuserautomatically 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/refreshendpoint in my API returns the following:My
/api/account/loginendpoint in my API returns the following:What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions