Home Reference Source
public class | source

Auth

Implements various KKBOX OAuth 2.0 authorization flows.

Constructor Summary

Public Constructor
public

constructor(clientID: string, clientSecret: string)

Initialize the Auth object with client id and client secret.

Member Summary

Public Members
public
public

Public Constructors

public constructor(clientID: string, clientSecret: string) source

Initialize the Auth object with client id and client secret.

Params:

NameTypeAttributeDescription
clientID string
clientSecret string

Example:

new Auth(clientID, clientSecret);

Public Members

public clientCredentialsFlow: ClientCredentialsFlow source

public tokenFetcher: TokenFetcher source