vue-authenticate icon indicating copy to clipboard operation
vue-authenticate copied to clipboard

Support for refresh tokens

Open colq2 opened this issue 6 years ago • 5 comments

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:

  1. (httponly): refresh token is set via HttpOnly Cookie which is the safest method
  2. (storage): refresh token is safe in the storage
  3. (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.

colq2 avatar May 02 '18 07:05 colq2

Thanks for your PR, i'll review it and write you my comments.

dgrubelic avatar Jun 26 '18 07:06 dgrubelic

Can you review it @dgrubelic?

matrunchyk avatar Aug 17 '18 22:08 matrunchyk

+1

Andrei-Pozolotin avatar Aug 19 '19 14:08 Andrei-Pozolotin

+1

lelesrc avatar Oct 13 '19 09:10 lelesrc

Any update in this PR ? :)

pnuckowski avatar Nov 13 '19 09:11 pnuckowski