package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. access_type : string;
    (*

    The access type granted with this token. It can be offline or online.

    *)
  2. audience : string;
    (*

    Who is the intended audience for this token. In general the same as issued_to.

    *)
  3. email : string;
    (*

    The email address of the user. Present only if the email scope is present in the request.

    *)
  4. expires_in : int;
    (*

    The expiry time of the token, as number of seconds left until expiry.

    *)
  5. issued_to : string;
    (*

    To whom was the token issued to. In general the same as audience.

    *)
  6. scope : string;
    (*

    The space separated list of scopes granted to this token.

    *)
  7. token_handle : string;
    (*

    The token handle associated with this token.

    *)
  8. user_id : string;
    (*

    The obfuscated user id.

    *)
  9. verified_email : bool;
    (*

    Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.

    *)
}
val access_type : (t, string) GapiLens.t
val audience : (t, string) GapiLens.t
val email : (t, string) GapiLens.t
val expires_in : (t, int) GapiLens.t
val issued_to : (t, string) GapiLens.t
val scope : (t, string) GapiLens.t
val token_handle : (t, string) GapiLens.t
val user_id : (t, string) GapiLens.t
val verified_email : (t, bool) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t