Skip to Content
Menu
This question has been flagged
2101 Rodiniai

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 24
2412
1
vas. 22
4099
1
vas. 22
7090
0
lapkr. 21
4582
3
geg. 21
13954