mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2025-12-31 16:40:05 +01:00
@@ -20,7 +20,7 @@ use itertools::Itertools;
|
||||
/// For completeness, the underlying, sorted scopes are provided as well. They might be
|
||||
/// useful for presentation to the user.
|
||||
pub trait TokenStorage {
|
||||
type Error: 'static + Error + Send;
|
||||
type Error: 'static + Error + Send + Sync;
|
||||
|
||||
/// If `token` is None, it is invalid or revoked and should be removed from storage.
|
||||
/// Otherwise, it should be saved.
|
||||
|
||||
@@ -71,7 +71,7 @@ pub enum RequestError {
|
||||
/// An error occurred while refreshing tokens.
|
||||
Refresh(RefreshResult),
|
||||
/// Error in token cache layer
|
||||
Cache(Box<dyn Error + Send>),
|
||||
Cache(Box<dyn Error + Send + Sync>),
|
||||
}
|
||||
|
||||
impl From<hyper::Error> for RequestError {
|
||||
|
||||
Reference in New Issue
Block a user