# When Okta will add the new JWK public key in GET api/v1/authorizationServers/{authServerID}/credentials/keys

**URL:** <https://devforum.okta.com/t/when-okta-will-add-the-new-jwk-public-key-in-get-api-v1-authorizationservers-authserverid-credentials-keys/13528>\
**Category:** Questions\
**Created:** [March 29, 2021, 9:45am UTC](https://devforum.okta.com/t/when-okta-will-add-the-new-jwk-public-key-in-get-api-v1-authorizationservers-authserverid-credentials-keys/13528 "2021-03-29T09:45:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arinto](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@arinto](https://devforum.okta.com/u/arinto)\
**Post date:** [March 29, 2021, 9:45am UTC](https://devforum.okta.com/t/when-okta-will-add-the-new-jwk-public-key-in-get-api-v1-authorizationservers-authserverid-credentials-keys/13528/1 "2021-03-29T09:45:18Z")

</div>

The API [docs](https://developer.okta.com/docs/reference/api/authorization-servers/?_ga=2.175382439.425910291.1616980221-1874578177.1613646269#get-authorization-server-keys) for Get Authorization Server Keys shows that we can get the `NEXT` JWK (i.e status is NEXT)

However, when I tried using our tenant, it only shows the active. So the question is when the `NEXT` JWK will be available in the API?

---

<div class="post-metadata">

**Author:** ![tyty](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyty](https://devforum.okta.com/u/tyty)\
**Post date:** [March 29, 2021, 4:39pm UTC](https://devforum.okta.com/t/when-okta-will-add-the-new-jwk-public-key-in-get-api-v1-authorizationservers-authserverid-credentials-keys/13528/2 "2021-03-29T16:39:19Z")

</div>

Are you using the default auth server ( **{your\_okta\_org}/oauth2/deafult** ) or a custom one?

---

<div class="post-metadata">

**Author:** ![tyty](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyty](https://devforum.okta.com/u/tyty)\
**Post date:** [March 29, 2021, 7:16pm UTC](https://devforum.okta.com/t/when-okta-will-add-the-new-jwk-public-key-in-get-api-v1-authorizationservers-authserverid-credentials-keys/13528/3 "2021-03-29T19:16:33Z")

</div>

@arinto I came across some information that explains this - What you are seeing is expected behavior:

> Okta generates the NEXT key halfway through the life of the CURRENT key. Since it’s auto-rotated every 90 days (roughly), then around day 45, you’ll have the NEXT key available. If there is an emergency rotation or you rotate it manually, that window will be shorter.

Essentially, the NEXT signing key is available ~45 days in advance and the PREV signing key is available ~45 days after Okta stops issuing tokens with it. Hope this helps!

---

<div class="post-metadata">

**Author:** ![arinto](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@arinto](https://devforum.okta.com/u/arinto)\
**Post date:** [March 30, 2021, 1:45am UTC](https://devforum.okta.com/t/when-okta-will-add-the-new-jwk-public-key-in-get-api-v1-authorizationservers-authserverid-credentials-keys/13528/4 "2021-03-30T01:45:55Z")

</div>

Allright, when is the NEXT key available in JWKs endpoint?  
Will there be a case where both ACTIVE and NEXT keys exposed at the same time in JWKs endpoint?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [March 31, 2021, 1:46am UTC](https://devforum.okta.com/t/when-okta-will-add-the-new-jwk-public-key-in-get-api-v1-authorizationservers-authserverid-credentials-keys/13528/5 "2021-03-31T01:46:23Z")

</div>

Closed on March 31, 2021, 1:46am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
