Skip to content

Commit

Permalink
Fix auth refresh bug
Browse files Browse the repository at this point in the history
nil was being returned on successful refresh
  • Loading branch information
ipmb committed Jan 18, 2021
1 parent 3451fa3 commit 6675736
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func getCredentials(appName string) (*sts.Credentials, *string, error) {
if err != nil {
return nil, nil, err
}
return resp.Credentials, &appRole.Region, nil
}
return nil, nil, err
}
Expand Down Expand Up @@ -285,11 +286,7 @@ func refreshTokens() (*Tokens, error) {
if err != nil {
return nil, err
}
tokens, err = tokenRequest(oauthTokenURL, reqBody)
if err != nil {
return nil, err
}
return tokens, nil
return tokenRequest(oauthTokenURL, reqBody)
}

// LoginInit start login process with Auth0
Expand Down

0 comments on commit 6675736

Please sign in to comment.