Constructors
constructor
- new OAuth(client: AxiosInstance, clientId: number, clientSecret: string): OAuth
Parameters
client: AxiosInstance
clientId: number
clientSecret: string
Properties
Private accessToken
accessToken: string
Private expiry
expiry: Date
Methods
Private _fetchAccessToken
getAccessToken
- getAccessToken(): Promise<string>
Creates an instance of OAuth.
OAuth