in src/SpotifyApi.ts [144:151]
public async authenticate(): Promise<AuthenticationResponse> {
const response = await this.authenticationStrategy.getOrCreateAccessToken(); // trigger any redirects
return {
authenticated: response.expires! > Date.now() && !isEmptyAccessToken(response),
accessToken: response
};
}