From 85a6d1ec95cddbacee475e8d8ddb931127d1c3bf Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Wed, 6 Jun 2018 22:51:59 +0530 Subject: [PATCH] oauth_google.go: fix env variable --- api/oauth_google.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/oauth_google.go b/api/oauth_google.go index 3a7a519..026f848 100644 --- a/api/oauth_google.go +++ b/api/oauth_google.go @@ -27,7 +27,7 @@ func googleOauthConfigure() error { logger.Infof("loading Google OAuth config") googleConfig = &oauth2.Config{ - RedirectURL: os.Getenv("BACKEND_WEB") + "/oauth/google/callback", + RedirectURL: os.Getenv("ORIGIN") + "/api/oauth/google/callback", ClientID: os.Getenv("GOOGLE_KEY"), ClientSecret: os.Getenv("GOOGLE_SECRET"), Scopes: []string{