-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use DeviceCodeErrorResponseType::ExpiredToken for expired Device (#195)
It is good to use RequestTokenError::ServerResponse for expired Device token instead of having a "Device code expired" string is set to Other(). We see to it that they are have the same Error with the error came from the endpoint. There was a timing issue found that expired_token is returned from the endpoint and sometimes the RequestTokenError::Other() was returned after the expiration time given by the endpoint. We make it uniform for easy error handling upon use.
- Loading branch information
1 parent
a9ff9b3
commit 7261513
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters