1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-12-07 02:36:40 +02:00

[#970] added Twitch OAuth2 provider

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

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")
}
}