Closed this issue 5 years ago · 1 comments
The example for the authorization code grant flow has this line:
tok, err := oauthConf.Exchange(ctx, authCode)
It appears oauthConf doesn't exist and should be replaced with cfg, like this:
tok, err := cfg.Exchange(ctx, authCode)
Good catch, thanks a26f4f6