Skip to content

Commit

Permalink
Defensive coding
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Oct 21, 2021
1 parent 441f122 commit b76dd70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iam/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ func (c *Client) CodeLogin(code string, redirectURI string) error {

// ServiceLogin logs a service in using a JWT signed with the service private key
func (c *Client) ServiceLogin(service Service) error {
token, err := service.GetToken(c.accessTokenEndpoint())
accessTokenEndpoint := c.accessTokenEndpoint()
token, err := service.GetToken(accessTokenEndpoint)
if err != nil {
return err
}
Expand Down

0 comments on commit b76dd70

Please sign in to comment.