mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-17 11:38:14 +02:00
[#970] added Twitch OAuth2 provider
This commit is contained in:
1 parent
c95e50c8a5
commit
4c096fd745
36 files changed
+154
-35
No files matched your search
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user