Implementation of refresh tokens.

new route .../user/refreshtoken
This commit is contained in:
2020-11-21 19:21:41 +01:00
parent c1eb7d87c5
commit 2dc4636296
9 changed files with 116 additions and 47 deletions

View File

@@ -198,6 +198,14 @@
<br>
- ### **/user/refreshtoken**
- #### **POST**
Takes no parameters as it reads the **refreshToken** from a cookie. If refresh token is valid, then returns new auth token in a header and sets new refresh token cookie. **500** on error.
<br>
* ### **/user/register**
- #### **POST**