Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2096 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
груд. 24
2380
1
лют. 22
4095
1
лют. 22
7084
0
лист. 21
4577
3
трав. 21
13949