[#2533] added VK OAuth2 provider

Co-authored-by: Valentine <xb2w1z@gmail.com>
This commit is contained in:
Gani Georgiev
2023-05-24 15:34:25 +03:00
parent e40cf46b33
commit af71b63f23
41 changed files with 173 additions and 39 deletions
+9
View File
@@ -189,4 +189,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Instagram); !ok {
t.Error("Expected to be instance of *auth.Instagram")
}
// vk
p, err = auth.NewProviderByName(auth.NameVK)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.VK); !ok {
t.Error("Expected to be instance of *auth.VK")
}
}