Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yshuman1
Created December 23, 2018 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yshuman1/dedaead8568e695df7a06f86cd986c2d to your computer and use it in GitHub Desktop.
Save yshuman1/dedaead8568e695df7a06f86cd986c2d to your computer and use it in GitHub Desktop.
sqOAuth := &oauth2.Config{
ClientID: sqCfg.ID,
ClientSecret: sqCfg.Secret,
Scopes: []string{"MERCHANT_PROFILE_READ", "ORDERS_READ"},
Endpoint: oauth2.Endpoint{
AuthURL: sqCfg.AuthURL,
TokenURL: sqCfg.TokenURL,
},
RedirectURL: sqCfg.RedirectURL,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment