gjwt

Types

pub type JWT =
  #(header.Header, payload.Payload)

Functions

pub fn add_claim(
  jwt: #(Header, Payload),
  claim: #(String, Dynamic),
) -> #(Header, Payload)
pub fn add_header(
  jwt: #(Header, Payload),
  key: String,
  value: Dynamic,
) -> #(Header, Payload)
pub fn from_jwt(
  jwt_as_string: String,
  key: Key,
) -> Result(#(Header, Payload), Nil)
pub fn new() -> #(Header, Payload)
pub fn sign_off(jwt: #(Header, Payload), key: Key) -> String
pub fn verify(jwt_as_string: String, key: Key) -> Bool
Search Document