MCPcopy Create free account
hub / github.com/BersisSe/feather / encode

Method encode

crates/feather/src/jwt.rs:170–172  ·  view source on GitHub ↗

Encode claims into a JWT token. # Arguments `claims` - The claims to encode (must implement Serialize) # Returns The JWT token string if successful. # Example ```rust,ignore use serde::{Serialize, Deserialize}; use feather::jwt::JwtManager; #[derive(Serialize, Deserialize)] struct Claims { sub: String, exp: usize, } let jwt = JwtManager::new("secret".to_string()); let token = jwt.encode(&C

(&self, claims: &T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

generate_simpleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected