[#3323] added Patreon OAuth2 provider

Co-authored-by: GHOST <ghostdevbusiness@gmail.com>
This commit is contained in:
Gani Georgiev
2023-09-16 08:20:49 +03:00
parent f605521208
commit 71f9be3cb0
41 changed files with 3953 additions and 3823 deletions
+9
View File
@@ -207,4 +207,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Yandex); !ok {
t.Error("Expected to be instance of *auth.yandex")
}
// patreon
p, err = auth.NewProviderByName(auth.NamePatreon)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Patreon); !ok {
t.Error("Expected to be instance of *auth.Patreon")
}
}