package spotify_ml

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

An authenticated user that can be used to access user specific information.

type t
val to_string : user:t -> (string, Serde.error) result
val of_string : user:string -> (t, Serde.error) result
val is_valid : user:t -> bool

A user token is usually only valid for 1h. You can use this function to check if the user token is expired.

OCaml

Innovation. Community. Security.