When requesting /oauth2/token, does the endpoint returns the same token or issues a new one?
Quick question, when doing M2M api calls, and trying to fetch the
oauth2/token
from kinde, does the endpoint returns the same token until expiry or issues a new one?
Do I need to locally save the token until expiry or its safe to call the endpoint multiple times without worries?2 Replies
Hey @9M6 , I think it should be fine to continue to call the token endpoint. I have asked a teammate to confirm.
Just heard back, you can implement token management to check the expiry time / see if the token is still valid before making a new req to oauth2/token - probably also worth checking out https://docs.kinde.com/authenticate/manage-authentication/sync-with-kinde/
Kinde docs
Keep your product in sync with Kinde
Our developer tools provide everything you need to get started with Kinde.