> For the complete documentation index, see [llms.txt](https://docs.meta-inf.hu/email-this-issue/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meta-inf.hu/email-this-issue/administration/mail-server-connections/microsoft-with-oauth2/troubleshooting-guides-for-microsoft-oauth2-connections/how-to-fix-key-expires_in-error.md).

# How to fix "key expires\_in " error

This error is caused by incorrect endpoint URLs.

In this case, you should open the app in Azure and copy the first two URLs from the list:

<figure><img src="/files/UqvvNvjBahhQGgmkQWXX" alt=""><figcaption></figcaption></figure>

And paste them into Auth endpoint URL and Token endpoint Url, respectively:

<figure><img src="/files/vW3clGdQRTq5rOAO4t6c" alt=""><figcaption></figcaption></figure>

Please keep in mind that Email This Issue can only work with the v2.0 URL, so if you can't see that in the URL(s), the connections won't work.
