From f5e30969ef6a6fba283ccc5072a6cd767201d37b Mon Sep 17 00:00:00 2001 From: Alexander Staroselsky Date: Wed, 12 Jan 2022 08:25:57 -0700 Subject: [PATCH] feat: add spotify oauth2 provider --- src/providers/spotify.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/providers/spotify.ts b/src/providers/spotify.ts index bc94359..a87c073 100644 --- a/src/providers/spotify.ts +++ b/src/providers/spotify.ts @@ -10,6 +10,17 @@ export interface SpotifyProfile { images: SpotifyProfileImage[]; type: string; uri: string; + // This field is only available when the current user has granted access to the user-read-private scope. + explicit_content?: SpotifyExplicitContent; + // This field is only available when the current user has granted access to the user-read-private scope. + product?: string; + // This field is only available when the current user has granted access to the user-read-private scope. + country?: string; +} + +export interface SpotifyExplicitContent { + filter_enabled: boolean; + filter_locked: boolean; } export interface SpotifyProfileImage {