- Access tokens are only shared once, right after account creation. If you haven't stored the access token, you need to re-authenticate the account to get a new one.
- If you are a developer, a best practice is to store all access tokens in your database after each authentication.
- They can not be recovered via the dashboard or any API call.
You only have visibility of the Nylas access token, only with native authentication will you also have the Provider Oauth Refresh token.
Best Practice Account Re-Authentication
- Start by authenticating the account
- Then using attribute keep_access_token call /revoke-all endpoint ensuring to only keep the most recent token (keep_access_token). This will ensure that you are using the correct token.
- If using scheduler ensure you update the token by visiting https://api.schedule.nylas.com/manage/pages with the newly generated token. For more info see our documentation.
Please sign in to leave a comment.