How to create never expire refresh token?
I want to add tokens for developers to access my API. How can I do it with NextAuth, can it create refresh token that never expire?
2 Replies
“Refresh token that can never expire” to me just sounds like creating a unique id (number, uuid, cuid…) for each user and having them pass it on every request and then you check it against your list of known keys.
Might be really misreading this or oversimplifying, if so sorry.
I ask it because I need create API keys for my app/api. But It shouldn't break JWT auth for frontend. I make service where you can interact from frontend and interact from your code like with rest API. So I ask for good solution for this situation. Just check token on each request, then I don't need an access token.