<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000AHZXmiCQHOkta Classic EngineAuthenticationAnswered2024-11-29T16:08:24.000Z2024-11-28T09:54:25.000Z2024-11-29T16:08:24.000Z
Never getting a new refresh token on token endpoint

I have issues with getting a new refresh token. I always receive the existing refresh token until it just expires.

 

From Okta docs:

 https://developer.okta.com/docs/guides/refresh-tokens/main/#refresh-token-rotation

Whether Okta returns a new refresh token with a new access token depends on the refresh token lifetime setting. If the lifetime setting hasn't expired, when a client makes a request for a new access token, Okta only returns the new access token. After the lifetime setting expires, Okta returns a new refresh token and a new access token.

 

I have problems even understanding this statement. If the lifetime hasn't expired, I don't get new refresh token. However, after its lifetime expires, it is no longer valid, and the request gets rejected.

 

 

I have been able to verify this myself.

 /help/servlet/rtaImage?refid=0EM4z000007IoCw 

Doing /v1/token request every 10 seconds. It works for 10 minutes, always returns new access token but the same refresh token. After 10 minutes the refresh token expires and I can no longer access the endpoint at all.

 

 

 

I also don't want to rotate refresh token after every use.

 

 

 

What can I do and what am I missing?


This question is closed.
Loading
Never getting a new refresh token on token endpoint