package jwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Bad_token
exception Bad_payload
type algorithm =
  1. | HS256 of string
  2. | Unknown
val fn_of_algorithm : algorithm -> Cryptokit.hash
val string_of_algorithm : algorithm -> string
val algorithm_of_string : string -> algorithm
type header
val header_of_algorithm_and_typ : algorithm -> string -> header
val algorithm_of_header : header -> algorithm
val typ_of_header : header -> string
val string_of_header : header -> string
val json_of_header : header -> Yojson.Basic.json
val header_of_string : string -> header
val header_of_json : Yojson.Basic.json -> header
type claim
val claim : string -> claim
val string_of_claim : claim -> string
val iss : claim
val sub : claim
val aud : claim
val exp : claim
val nbf : claim
val iat : claim
val jti : claim
val typ : claim
val ctyp : claim
val alg : claim
val auth_time : claim
val nonce : claim
val acr : claim
val amr : claim
val azp : claim
type payload
val empty_payload : payload
val add_claim : claim -> string -> payload -> payload
val find_claim : claim -> payload -> string
val payload_of_json : Yojson.Basic.json -> payload
val json_of_payload : payload -> Yojson.Basic.json
val string_of_payload : payload -> string
type t
val t_of_header_and_payload : header -> payload -> t
val header_of_t : t -> header
val payload_of_t : t -> payload
val signature_of_t : t -> string
val token_of_t : t -> string
val t_of_token : string -> t
OCaml

Innovation. Community. Security.