Closed lordzsolt closed 9 months ago
When a refresh token is invalidated remotely, when attempting to obtain a new access token using this refresh token, Auth0 will reply with:
{ "error": "invalid_grant", "error_description": "Unknown or invalid refresh token." }
This case does not exist in Auth0.swift, but exists in Auth0.android: https://github.com/auth0/Auth0.Android/blob/148df396c5706579b99bb7a1d26e00ea65a93753/auth0/src/main/java/com/auth0/android/authentication/AuthenticationException.kt#L204C16-L204C37
I would expect AuthenticationError to contain isInvalidRefreshToken same as Auth0.Android.
AuthenticationError
isInvalidRefreshToken
CredentialsManager.credentials
oauth/token
No response
2.5.0
iOS
17.0
15.1
Cocoapods
Checklist
Description
When a refresh token is invalidated remotely, when attempting to obtain a new access token using this refresh token, Auth0 will reply with:
This case does not exist in Auth0.swift, but exists in Auth0.android: https://github.com/auth0/Auth0.Android/blob/148df396c5706579b99bb7a1d26e00ea65a93753/auth0/src/main/java/com/auth0/android/authentication/AuthenticationException.kt#L204C16-L204C37
I would expect
AuthenticationError
to containisInvalidRefreshToken
same as Auth0.Android.Reproduction
CredentialsManager.credentials
(callsoauth/token
)Additional context
No response
Auth0.swift version
2.5.0
Platform
iOS
Platform version(s)
17.0
Xcode version
15.1
Package manager
Cocoapods