package activitypub

  1. Overview
  2. Docs

Creating and storing named tokens used for authentication.

type key = string
type t = {
  1. name : string;
  2. key : key;
}
val default_t : t
val t_wrapper : t Ocf.Wrapper.t
val random_key : unit -> string
val make : string -> t
type auth_token = {
  1. actor : string;
  2. key : key;
}
val string_of_auth_token : auth_token -> string
val auth_token_of_string : string -> (auth_token, string) Stdlib.result
val token_list_wrapper : t list Ocf.Wrapper.t
val tokens_of_file : Lwt_io.file_name -> t list Lwt.t
val file_of_tokens : t list -> Lwt_io.file_name -> unit Lwt.t
OCaml

Innovation. Community. Security.