package jwto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type algorithm =
  1. | HS256
  2. | HS512
  3. | Unknown
type t
type header
type payload = (string * string) list
type unsigned_token
val encode : algorithm -> string -> payload -> (string, string) result
val decode : string -> (t, string) result
val decode_and_verify : string -> string -> (t, string) result
val is_valid : string -> t -> bool
val make_header : algorithm -> header
val make_unsigned_token : header -> payload -> unsigned_token
val make_signed_token : string -> unsigned_token -> (t, string) result
val pp : Format.formatter -> t -> unit
val eq : t -> t -> bool
val algorithm_to_string : algorithm -> string
val show_algorithm : algorithm -> string
val header_to_string : header -> string
val show_header : header -> string
val payload_to_string : payload -> string
val show_payload : payload -> string
val get_claim : string -> payload -> string option
OCaml

Innovation. Community. Security.