[#2534] added Instagram OAuth2 provider

Co-authored-by: Pedro Costa <550684+pnmcosta@users.noreply.github.com>
This commit is contained in:
Gani Georgiev
2023-05-23 22:37:44 +03:00
parent 728427cecf
commit a6bb1bf096
9 changed files with 107 additions and 4 deletions
+9
View File
@@ -180,4 +180,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Apple); !ok {
t.Error("Expected to be instance of *auth.Apple")
}
// instagram
p, err = auth.NewProviderByName(auth.NameInstagram)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Instagram); !ok {
t.Error("Expected to be instance of *auth.Instagram")
}
}