Results for “Std.App.Jwt.JwtClaims”
9 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.App.Jwt.JwtClaims
Standard claims contained within an RFC 7519 JSON Web Token.
- Std.App.Jwt.claims
Std.App.Jwt.JwtClaimsConstructs an empty set of JWT claims.
- Std.App.Jwt.decode
Str -> &Bytes -> &Std.App.Jwt.JwtValidation -> Int -> Result[Std.App.Jwt.JwtClaims, Std.App.Jwt.JwtError]Decodes and cryptographically verifies an RFC 7519 compact JWT against secret and validation rules.
- Std.App.Jwt.decodeUnverified
Str -> Result[Std.App.Jwt.JwtClaims, Std.App.Jwt.JwtError]Decodes claims without cryptographic signature verification.
- Std.App.Jwt.decodeWithKey
Str -> &Std.App.Jwt.PublicKey -> &Std.App.Jwt.JwtValidation -> Int -> Result[Std.App.Jwt.JwtClaims, Std.App.Jwt.JwtError]Verify a token signed with a provider's private key, and read its claims.
- Std.App.Jwt.encode
&Std.App.Jwt.JwtClaims -> &Bytes -> StrSerializes and signs claims into an RFC 7519 HS256 compact JSON Web Token.
- Std.App.Jwt.getClaim
&Std.App.Jwt.JwtClaims -> Str -> Option[Str]Retrieves a claim by name from registered or custom claims.
- Std.App.Jwt.hasExpired
&Std.App.Jwt.JwtClaims -> Int -> Int -> BoolChecks whether claims indicate the token has expired relative to a timestamp and leeway.
- Std.App.Jwt.isValidAt
&Std.App.Jwt.JwtClaims -> Int -> Int -> BoolChecks whether claims are active and valid (neither premature nor expired).
