Skip to main content

JweSecretSource

Trait JweSecretSource 

Source
pub trait JweSecretSource {
    // Required methods
    fn current_jwe_secret(&self) -> Result<String, RustAuthError>;
    fn all_jwe_secrets(&self) -> Result<Vec<JweSecret>, RustAuthError>;
}
Expand description

Secret material accepted by Better Auth-compatible JWE helpers.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl JweSecretSource for String

Source§

impl JweSecretSource for str

Implementors§