Skip to content

Commit

Permalink
adjust comment to make more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaiaroto committed Jul 5, 2018
1 parent 0386d1a commit f888f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cognito/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func cognitoCallback(ctx context.Context, d *aegis.HandlerDependencies, req *aeg
// Exchange code for token
tokens, err := d.Services.Cognito.GetTokens(req.QueryStringParameters["code"], []string{})
// Depending on Cognito configuration, there could be an error here.
// This service is for an OAuth2 with openid flow. Ensure the proper grants are set.
// This service is for an OAuth2 with an authorization code flow. Ensure grants are set.
if tokens.Error != "" {
err = errors.New(tokens.Error)
}
Expand Down

0 comments on commit f888f2a

Please sign in to comment.