Home Reference Source
import ClientCredentialsFlow from '@kkbox/kkbox-js-sdk/src/auth/ClientCredentialsFlow.js'
public class | source

ClientCredentialsFlow

Implements the client credentials flow. Used for accessing APIs that don't need any KKBOX user's personal data.

See:

Method Summary

Public Methods
public

Fetch access token.

Public Methods

public fetchAccessToken(): Promise source

Fetch access token.

Return:

Promise

Example:

auth.clientCredentialsFlow.fetchAccessToken();