CodeVerifierStore

Trait CodeVerifierStore 

Source
pub trait CodeVerifierStore: Send + Sync {
    // Required methods
    fn put(&self, state: String, verifier: String, ttl: Duration);
    fn take(&self, state: &str) -> Option<String>;
}
Expand description

Generic interface for storing PKCE code verifiers keyed by state.

Required Methods§

Source

fn put(&self, state: String, verifier: String, ttl: Duration)

Source

fn take(&self, state: &str) -> Option<String>

Implementors§