fix: improve goth code (#2693)

Signed-off-by: Dmitrii Aleksandrov <goodmobiledevices@gmail.com>
This commit is contained in:
Dmitri Aleksandrov 2024-02-12 15:51:58 +03:00 committed by GitHub
parent 6e28043dba
commit 7e3c1a6581
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,6 +75,7 @@ import (
"github.com/markbates/goth/providers/twitterv2" "github.com/markbates/goth/providers/twitterv2"
"github.com/markbates/goth/providers/typetalk" "github.com/markbates/goth/providers/typetalk"
"github.com/markbates/goth/providers/uber" "github.com/markbates/goth/providers/uber"
"github.com/markbates/goth/providers/vk"
"github.com/markbates/goth/providers/wepay" "github.com/markbates/goth/providers/wepay"
"github.com/markbates/goth/providers/xero" "github.com/markbates/goth/providers/xero"
"github.com/markbates/goth/providers/yahoo" "github.com/markbates/goth/providers/yahoo"
@ -371,6 +372,11 @@ func NewGothIdProvider(providerType string, clientId string, clientSecret string
Provider: uber.New(clientId, clientSecret, redirectUrl), Provider: uber.New(clientId, clientSecret, redirectUrl),
Session: &uber.Session{}, Session: &uber.Session{},
} }
case "VK":
idp = GothIdProvider{
Provider: vk.New(clientId, clientSecret, redirectUrl),
Session: &vk.Session{},
}
case "Wepay": case "Wepay":
idp = GothIdProvider{ idp = GothIdProvider{
Provider: wepay.New(clientId, clientSecret, redirectUrl), Provider: wepay.New(clientId, clientSecret, redirectUrl),