package sihl-type

  1. Overview
  2. Docs

Module Sihl_type.TokenSource

Sourceexception Exception of string
Sourcemodule Status : sig ... end
Sourcetype t = {
  1. id : string;
  2. value : string;
  3. data : string option;
  4. kind : string;
  5. status : Status.t;
  6. expires_at : Ptime.t;
  7. created_at : Ptime.t;
}
Sourceval created_at : t -> Ptime.t
Sourceval expires_at : t -> Ptime.t
Sourceval status : t -> Status.t
Sourceval kind : t -> string
Sourceval data : t -> string option
Sourceval value : t -> string
Sourceval id : t -> string
Sourcemodule Fields : sig ... end
Sourceval make : id:string -> value:string -> data:string option -> kind:string -> status:Status.t -> expires_at:Ptime.t -> created_at:Ptime.t -> t
Sourceval invalidate : t -> t
Sourceval is_valid : t -> bool
OCaml

Innovation. Community. Security.