UNPKG

lunify.js

Version:

A basic api wrapper for the spotify api covering the oauth routes.

20 lines (19 loc) 492 B
import type { Lunify } from "../.."; export declare class CredentialsManager { client: Lunify; accessToken?: string; tokenType?: string; scope?: string; expiresIn?: number; expiresTimestamp?: number; createdTimestamp?: number; constructor(client: Lunify); /** * Fetches client credentials from the spotify api */ fetch(): Promise<this>; /** * Generates a authorization token header */ getAuthorization(): Promise<string>; }