UserAuth

Used to get and validate an access token, and to get user data.

Hierarchy

  • UserAuth

Constructors

constructor

Methods

getToken

  • getToken(): Promise<string>
  • Retrieves the access token.

    Returns Promise<string>

    The access token if it is valid, or an error if at least one of the following credentials is not stated: access key ID or access key secret.

getUserInfo

  • getUserInfo(userToken: string): Promise<UserInfo>

validateAccessToken

  • validateAccessToken(token: string): Promise<string | boolean>