Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2091 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 24
2366
1
úno 22
4093
1
úno 22
7074
0
lis 21
4573
3
kvě 21
13932