From 7e3c1a65811dcd7a383e978cbde1fbfe4913c9d6 Mon Sep 17 00:00:00 2001 From: Dmitri Aleksandrov Date: Mon, 12 Feb 2024 15:51:58 +0300 Subject: [PATCH] fix: improve goth code (#2693) Signed-off-by: Dmitrii Aleksandrov --- idp/goth.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/idp/goth.go b/idp/goth.go index d81e73eb..8affe072 100644 --- a/idp/goth.go +++ b/idp/goth.go @@ -75,6 +75,7 @@ import ( "github.com/markbates/goth/providers/twitterv2" "github.com/markbates/goth/providers/typetalk" "github.com/markbates/goth/providers/uber" + "github.com/markbates/goth/providers/vk" "github.com/markbates/goth/providers/wepay" "github.com/markbates/goth/providers/xero" "github.com/markbates/goth/providers/yahoo" @@ -371,6 +372,11 @@ func NewGothIdProvider(providerType string, clientId string, clientSecret string Provider: uber.New(clientId, clientSecret, redirectUrl), Session: &uber.Session{}, } + case "VK": + idp = GothIdProvider{ + Provider: vk.New(clientId, clientSecret, redirectUrl), + Session: &vk.Session{}, + } case "Wepay": idp = GothIdProvider{ Provider: wepay.New(clientId, clientSecret, redirectUrl),