getUserInfo

open suspend override fun getUserInfo(): ERROR CLASS: Symbol not found for Result<com/okta/authfoundation/client/dto/OidcUserInfo>

Fetches user info from the authorization server.

Automatically refreshes the access token if it has expired before making the request.

Return

Result.success with OidcUserInfo, or Result.failure with:

  • IllegalStateException if the access token is expired and cannot be refreshed.

  • Other exceptions if the network request fails.