Skip to content

[FEATURE REQUEST] - Refresh Token #82

@go4cas

Description

@go4cas

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?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions