Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2054 Представления

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
2287
1
февр. 22
4042
1
февр. 22
6975
0
нояб. 21
4482
3
мая 21
13848