I am an asp net web API application client using token based authentication. The structure of the token is as follows:
{ access_token: "β¦", token_type: "bearer", expires_in: 3599 }
obviously, it expires, and I'm currently requesting a new token with every request, which I think is not good practice, since each API request is actually 2, one for authentication and another for the actual request. So I'm trying to implement some caching of the token, but I donβt know what exactly the expires_in field expires_in , is it seconds, miliseconds?
source share