pub struct JwtConfig {
pub private_key_pem: String,
pub public_key_pem: String,
pub expiration_seconds: u64,
}Expand description
ES256 EC key material and expiration used by encode_jwt/decode_jwt.
Fields§
§private_key_pem: StringPEM-encoded EC private key, used to sign tokens.
public_key_pem: StringPEM-encoded EC public key, used to verify tokens.
expiration_seconds: u64Token lifetime in seconds, applied when computing exp.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JwtConfig
impl RefUnwindSafe for JwtConfig
impl Send for JwtConfig
impl Sync for JwtConfig
impl Unpin for JwtConfig
impl UnsafeUnpin for JwtConfig
impl UnwindSafe for JwtConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more