oauth_google.go: fix env variable

This commit is contained in:
Adhityaa 2018-06-06 22:51:59 +05:30
parent 16e3c926fe
commit 85a6d1ec95

View File

@ -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{