Skip to content

Periodic token re-validation #29

Closed Answered by sergiodxa
LaylBongers asked this question in Q&A
Discussion options

You must be logged in to vote

You will have to setup a cronjob to validate every hour, to do this you will also need to store the access token, refresh token and expiration date in the database (it can be in the session if the session data is stored in the database)

How to build the cronjob will depend on where you're deploying as it's not the same CF, Vercel, Netlify or a long running process.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sergiodxa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants