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

[FEATURE REQUEST] - Refresh Token #82

Open
go4cas opened this issue Apr 18, 2019 · 0 comments
Open

[FEATURE REQUEST] - Refresh Token #82

go4cas opened this issue Apr 18, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@go4cas
Copy link

go4cas commented Apr 18, 2019

It would be great if one could get a refresh token together with the initial access token in the login response payload - an enhancement to #80.

Example:

{
  "token": "eyJ************KJU",
  "refreshToken": "ed******************WjT",
  "type": "bearer"
}

The refreshToken is then stored in a separate key in localstorge (or cookie/vuex).

If the refreshData option fires, or with $auth.refresh() method, the API call will then include the refreshToken in the Authorization header or the request body.

Your thoughts?

@d0whc3r d0whc3r added the enhancement New feature or request label Apr 18, 2019
@d0whc3r d0whc3r self-assigned this Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants