Skip to content

Instantly share code, notes, and snippets.

@BNPrashanth
Created September 13, 2019 08:29
Show Gist options
  • Save BNPrashanth/0ac0a386a37f92be87ddd36d503ef9e8 to your computer and use it in GitHub Desktop.
Save BNPrashanth/0ac0a386a37f92be87ddd36d503ef9e8 to your computer and use it in GitHub Desktop.
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