[#970] added Twitch OAuth2 provider

This commit is contained in:
Gani Georgiev committed 2022-11-13 14:20:11 +02:00
1 parent c95e50c8a5
commit 4c096fd745
36 files changed
+154 -35

No files matched your search

+9
View File
@@ -99,4 +99,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Kakao); !ok {
t.Error("Expected to be instance of *auth.Kakao")
}
// twitch
p, err = auth.NewProviderByName(auth.NameTwitch)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Twitch); !ok {
t.Error("Expected to be instance of *auth.Twitch")
}
}