pub trait OAuthStateStore: Send + Sync {
// Required methods
fn create_oauth_state<'life0, 'async_trait>(
&'life0 self,
state: NewOAuthState,
) -> Pin<Box<dyn Future<Output = Result<OAuthState, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn find_by_csrf_state<'life0, 'life1, 'async_trait>(
&'life0 self,
csrf_state: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthState>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn delete_oauth_state<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn delete_expired_oauth_states<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Storage backend for transient OAuth state records.