mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-23 22:40:24 +02:00
[#979] added Kakao OAuth2 provider
This commit is contained in:
1 parent
521df149a2
commit
50fce1f3cf
7 files changed
+118
-5
No files matched your search
@@ -55,6 +55,15 @@ func TestNewProviderByName(t *testing.T) {
|
||||
t.Error("Expected to be instance of *auth.Gitlab")
|
||||
}
|
||||
|
||||
// twitter
|
||||
p, err = auth.NewProviderByName(auth.NameTwitter)
|
||||
if err != nil {
|
||||
t.Errorf("Expected nil, got error %v", err)
|
||||
}
|
||||
if _, ok := p.(*auth.Twitter); !ok {
|
||||
t.Error("Expected to be instance of *auth.Twitter")
|
||||
}
|
||||
|
||||
// discord
|
||||
p, err = auth.NewProviderByName(auth.NameDiscord)
|
||||
if err != nil {
|
||||
@@ -81,4 +90,13 @@ func TestNewProviderByName(t *testing.T) {
|
||||
if _, ok := p.(*auth.Spotify); !ok {
|
||||
t.Error("Expected to be instance of *auth.Spotify")
|
||||
}
|
||||
|
||||
// kakao
|
||||
p, err = auth.NewProviderByName(auth.NameKakao)
|
||||
if err != nil {
|
||||
t.Errorf("Expected nil, got error %v", err)
|
||||
}
|
||||
if _, ok := p.(*auth.Kakao); !ok {
|
||||
t.Error("Expected to be instance of *auth.Kakao")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user