Skip to content
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

fetchUser is called while fetchUserOnLogin is set to false #59

Closed
varna opened this issue Feb 7, 2018 · 0 comments
Closed

fetchUser is called while fetchUserOnLogin is set to false #59

varna opened this issue Feb 7, 2018 · 0 comments

Comments

@varna
Copy link
Contributor

varna commented Feb 7, 2018

Set nuxt.config.js:

auth: {
  fetchUserOnLogin: false,
  endpoints: {
    login: 'api/oauth2/token',
    method: 'post',
    propertyName: 'access_token'
  }
}

Do this.$auth.login.
Get error http://localhost:3000/api/auth/user 404 (Not Found)
Also get 200 response and save data, (but not token), to auth module.

This question is available on Nuxt.js community (#c42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant