-
Notifications
You must be signed in to change notification settings - Fork 463
Closed
Description
Issue
When the refresh token expires (could be due to changing password, not being used for a while etc) the error message sent from the library is different depending on platform and provider. It would be very nice if this could be unified.
Example
Responses for Google and Azure, havn't tried the others in the table below.
catch(e) {
e.code // ErrorCode in example below
e.message // ErrorMessage in example below
}
| Android | iOS | |
| Azure |
ErrorCode: Failed to refresh token
ErrorMessage: AADSTS50173: The provided grant has expired due to it being revoked .... |
ErrorCode: RNAppAuth Error
ErrorMessage: invalid_grant: AADSTS50173: The provided grant has expired due to it being revoked |
| ErrorCode: Failed to refresh token ErrorMessage: Token has been expired or revoked. | ErrorCode: RNAppAuth Error ErrorMessage: invalid_grant: Token has been expired or revoked. |
Suggested fix
The same error should return the same error code defined by the library. The error messages could be kept as they are.
timbjarengren
Metadata
Metadata
Assignees
Labels
No labels