> 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/email-this-issue-for-jira-server-data-center/documentation/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:

![](/files/hqXYEBdyzDGJbRmUVF3b)

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

![](/files/mTpgfvkzMu85qLZw3kj2)

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.
