JWTSimpleServer icon indicating copy to clipboard operation
JWTSimpleServer copied to clipboard

Refreshed access_token increases in size for each refresh

Open ksolberg opened this issue 4 years ago • 0 comments

I'm refreshing every 30 sec:

const config = { headers: {'Content-Type': 'application/x-www-form-urlencoded' }}

axios.post('/token', qs.stringify({ refresh_token: refreshToken, grant_type: 'refresh_token' }), config)

For each request, the returned access_token increases in size. After ~1-2hrs it's about 20k.

Edit: decoded the token and DateCreated is added each time:

... "DateCreated": [ "08.10.2019 07.09.49", "08.10.2019 07.10.18", "08.10.2019 07.10.48", "08.10.2019 07.11.18", "08.10.2019 07.11.48", "08.10.2019 07.12.18", "08.10.2019 07.12.48", ...

https://github.com/Xabaril/JWTSimpleServer/blob/master/src/JWTSimpleServer/JwtTokenEncoder.cs#L30

ksolberg avatar Oct 08 '19 10:10 ksolberg