You received webhook: account.stopped or account.invalid. The /a/client_id/accounts/id
endpoint returns a sync_state
of:
invalid-credentials
stopped
See: https://developer.nylas.com/docs/the-basics/manage-accounts/account-sync-status/#account-management
Resolution:
Hosted Authentication used by 80% of apps:
https://developer.nylas.com/docs/api#get/oauth/authorize
Native Authentication less common:
https://developer.nylas.com/docs/api#post/connect/authorize
Best Practice:
- Start by authenticating the account.
- Then using attribute keep_access_token call /revoke-all endpoint . This will ensure that you are using the correct token.
Comments
0 comments
Please sign in to leave a comment.