mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-29 16:30:25 +01:00
Implement strava oauth2 as new auth provider
This commit is contained in:
1 parent
8f6cb5ad2d
commit
d710446c71
35 files changed
+137
-34
No files matched your search
@@ -108,4 +108,13 @@ func TestNewProviderByName(t *testing.T) {
|
||||
if _, ok := p.(*auth.Twitch); !ok {
|
||||
t.Error("Expected to be instance of *auth.Twitch")
|
||||
}
|
||||
|
||||
// strava
|
||||
p, err = auth.NewProviderByName(auth.NameStrava)
|
||||
if err != nil {
|
||||
t.Errorf("Expected nil, got error %v", err)
|
||||
}
|
||||
if _, ok := p.(*auth.Strava); !ok {
|
||||
t.Error("Expected to be instance of *auth.Strava")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user