jkeveren-spotify-api
Version:
Promise based Spotify API wrapper that automatically refreshes access tokens
11 lines (10 loc) • 373 B
TypeScript
import { SpotifyClient, SpotifyResponse } from "./SpotifyClient";
export declare class SpotifyUser {
client: SpotifyClient;
accessToken: string;
accessTokenExpiryDate: Date;
refreshToken: string;
grantedScopes: string[];
refreshAccessToken(): Promise<void>;
makeRequest(endpoint: string, options: any, body: string): Promise<SpotifyResponse>;
}