package spotify_ml

  1. Overview
  2. Docs

Module Client.UserSource

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

Sourcetype t
Sourceval to_string : user:t -> (string, Serde.error) result
Sourceval of_string : user:string -> (t, Serde.error) result
Sourceval 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.