Created
September 13, 2019 08:29
-
-
Save BNPrashanth/f2a42795a29d6a93742ce859c944f892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ( | |
oauthConfGl = &oauth2.Config{ | |
ClientID: "", | |
ClientSecret: "", | |
RedirectURL: "http://localhost:9090/callback-gl", | |
Scopes: []string{"https://www.googleapis.com/auth/userinfo.email"}, | |
Endpoint: google.Endpoint, | |
} | |
oauthStateStringGl = "" | |
) | |
/* | |
InitializeOAuthGoogle Function | |
*/ | |
func InitializeOAuthGoogle() { | |
oauthConfGl.ClientID = viper.GetString("google.clientID") | |
oauthConfGl.ClientSecret = viper.GetString("google.clientSecret") | |
oauthStateStringGl = viper.GetString("oauthStateString") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment