[#887] added Spotify OAuth2 provider

This commit is contained in:
Olle Månsson
2022-11-01 16:06:06 +01:00
committed by GitHub
parent 9cef6ebd82
commit 639522b142
35 changed files with 121 additions and 35 deletions
+9
View File
@@ -72,4 +72,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Microsoft); !ok {
t.Error("Expected to be instance of *auth.Microsoft")
}
// spotify
p, err = auth.NewProviderByName(auth.NameSpotify)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Spotify); !ok {
t.Error("Expected to be instance of *auth.Spotify")
}
}