# Nylas OAuth Error: Microsoft Callback Not Providing Authorization Code

**URL:** <https://forums.nylas.com/t/nylas-oauth-error-microsoft-callback-not-providing-authorization-code/1032>\
**Category:** Question and Answers\
**Created:** [December 18, 2025, 5:00pm UTC](https://forums.nylas.com/t/nylas-oauth-error-microsoft-callback-not-providing-authorization-code/1032 "2025-12-18T17:00:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnswaroop](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@johnswaroop](https://forums.nylas.com/u/johnswaroop)\
**Post date:** [December 18, 2025, 5:00pm UTC](https://forums.nylas.com/t/nylas-oauth-error-microsoft-callback-not-providing-authorization-code/1032/1 "2025-12-18T17:00:13Z")

</div>

GET /api/auth/nylas/init 200 in 25ms  
=== OAuth Callback Received ===  
Request URL: [http://localhost:3000/api/oauth/exchange](http://localhost:3000/api/oauth/exchange)  
Callback parameters: { hasCode: false, hasState: false, hasError: false }

I’m running into an issue with the Microsoft → Nylas OAuth flow.  
During the callback step, instead of receiving an authorization `code`, the callback URL is returning `nocode`. This prevents the token exchange from completing.

Could you please help me understand why the `code` parameter is not being returned and what might be causing Microsoft to redirect with `error=nocode`? Any guidance on the correct configuration or required parameters for the Microsoft OAuth URL would be appreciated.

---

<div class="post-metadata">

**Author:** ![Samuel.R](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Samuel.R](https://forums.nylas.com/u/Samuel.R)\
**Post date:** [December 18, 2025, 5:58pm UTC](https://forums.nylas.com/t/nylas-oauth-error-microsoft-callback-not-providing-authorization-code/1032/2 "2025-12-18T17:58:46Z")

</div>

Hello. Our Support team has reached out to you via email to continue this investigation. Please check your mailbox for our message.

---

<div class="post-metadata">

**Author:** ![Samuel.R](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Samuel.R](https://forums.nylas.com/u/Samuel.R)\
**Post date:** [December 18, 2025, 5:58pm UTC](https://forums.nylas.com/t/nylas-oauth-error-microsoft-callback-not-providing-authorization-code/1032/3 "2025-12-18T17:58:54Z")

</div>


