| use std::time::Duration; | |
| /// Authentication flow errors. | |
| pub enum Error { | |
| /// Authentication initiation failed. | |
| InitiationFailed(String), | |
| /// Authentication timed out waiting for user. | |
| Timeout(Duration), | |
| /// Device code or session expired before completion. | |
| Expired, | |
| /// User denied authorization request. | |
| Denied, | |
| /// Polling operation failed due to network or server error. | |
| PollFailed(String), | |
| /// Authentication completion failed. | |
| CompletionFailed(String), | |
| /// Token refresh operation failed. | |
| RefreshFailed(String), | |
| /// Invalid authentication context for the flow type. | |
| InvalidContext(String), | |
| } | |