Skip to Content
Menu
This question has been flagged
2378 Views

Hello,

I work on a project where we use an external API. This API allows to keep the same token for 7 days.

I'd like to not reconnect everytime and use the token while it has still less than 7 days but I don't know the good practice for that. Do I keep it in a new model (which would have only 1 line in the DB ) and every time I need to access to the API, I access to the model and check the date or there are better methods?


Thank you in advance for your help.

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
2990
1
Feb 22
4549
1
Feb 22
7638
0
Nov 21
5091
3
May 21
14241