vue-authenticate
vue-authenticate copied to clipboard
Support for refresh tokens
According to #12 and #106 I updated this package to support refresh token.
What did changed:
First of all I added some options. The important one is the refreshType
. There are three types:
- (httponly): refresh token is set via HttpOnly Cookie which is the safest method
- (storage): refresh token is safe in the storage
- (null): refresh token is not use
As a result there is now a response inteceptor which is used to refresh the token automatically.
There are setters and getters for the refresh token and the expiration.
Also I outsourced some things to utils to make the code more readable.
Thanks for your PR, i'll review it and write you my comments.
Can you review it @dgrubelic?
+1
+1
Any update in this PR ? :)