You've already forked pocketbase
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:
@@ -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