During authentication you receive the response:
Couldn't exchange OAuth code for a Microsoft refresh token.
Provider error: invalid_client, error description: AADSTS7000215:
Invalid client secret provided.
Endpoint / Log:
/oauth/authorize - https://developer.nylas.com/docs/api/#get/oauth/authorize
- This means you haven't entered the correct Client secret value in the Office 365 OAuth settings of your Nylas app.
- See this step here: https://developer.nylas.com/docs/the-basics/provider-guides/microsoft/create-azure-app/#create-the-oauth-credentials. Please make sure to copy the Value field and not the Secret ID. See the following screenshot:
- Then you'll also want to make sure to take the correct Client ID. In the Azure portal, it's called Application (client) ID and you can see it under App Registrations. See this screenshot: