> 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:

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2F7QIT8SGJeo6IcbrPfwJX%2Fimage.png?alt=media\&token=8b99c475-fa5e-4dfa-be06-444de6b1ac4b)

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

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2F8JdahCoIQ6Ch4R3nDNRK%2Fimage.png?alt=media\&token=de4a1c1d-e715-435f-a29a-d2fe909f48a2)

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.
