45775: Failed to refresh token. Invalid token provided.
FLEX
WARNING
This warning appears when Flex cannot refresh a session token because the token supplied in the refresh request is invalid. Flex user tokens are JWE tokens used to authenticate access to the Flex application, and the Flex SDK provides dedicated methods to validate, refresh, and update those tokens during a session.
- The token sent in the refresh request is malformed or otherwise fails token validation.
- The token has expired, the expiration value is invalid, or the system that generated the token has incorrect time settings.
- The token was generated with invalid claims or account values, such as incorrect
issorsub.
- Generate a new Flex user token and retry the request. Flex user tokens are JWE tokens, and the token API supports a
ttlvalue with a default of 3600 seconds. - If you use the Flex SDK, call
refreshTokenwith the current refresh token andssoProfileSid. UsevalidateTokenbefore retrying if you need to confirm that the token is still valid. - After your backend issues a new token, pass it to
client.updateTokenso the current session and connected services use the updated credentials. Store the new token and refresh token that your application receives after a successful update. - If validation continues to fail, reissue the token on your backend with the correct claims and account values. If you build your own authentication flow, keep token minting on the backend and do not expose
AuthTokenin front-end applications.