swathy
8 years agoOccasional Visitor
How to check Token got expired or not
we have to run around 200 APIs . In order to run each API the precondition is, we have to pass one Token (We are generating token through token generation API only).
We are successfully passed the token to API and it is working as expected .
The generated token is valid for 5 min , but as of now what we are doing is before running each API we are generating the new Token and using it .
we are planning to implement the below scenario
1. before running one API first we have to check the geneared token is expired or not
2.if it is not expired use the same Token to run the current API
3.if the token got expired , then generate the new one
Could you please help me to implement this .