package jwto

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module JwtoSource

Sourcetype algorithm =
  1. | HS256
  2. | HS512
  3. | Unknown
Sourcetype t
Sourcetype header
Sourcetype payload = (string * string) list
Sourcetype unsigned_token
Sourceval encode : algorithm -> string -> payload -> (string, string) result
Sourceval decode : string -> (t, string) result
Sourceval get_header : t -> header
Sourceval get_payload : t -> payload
Sourceval get_signature : t -> string
Sourceval decode_and_verify : string -> string -> (t, string) result
Sourceval is_valid : string -> t -> bool
Sourceval make_header : algorithm -> header
Sourceval make_unsigned_token : header -> payload -> unsigned_token
Sourceval make_signed_token : string -> unsigned_token -> (t, string) result
Sourceval pp : Format.formatter -> t -> unit
Sourceval eq : t -> t -> bool
Sourceval algorithm_to_string : algorithm -> string
Sourceval show_algorithm : algorithm -> string
Sourceval header_to_string : header -> string
Sourceval show_header : header -> string
Sourceval payload_to_string : payload -> string
Sourceval show_payload : payload -> string
Sourceval get_claim : string -> payload -> string option
OCaml

Innovation. Community. Security.