Skip to content

Commit

Permalink
wip: remove sensitive print lines and note deadcode
Browse files Browse the repository at this point in the history
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
  • Loading branch information
displague authored and cprivitere committed Oct 9, 2023
1 parent 0ce08f1 commit d1da961
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/loadbalancers/infrastructure/token_exchanger.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ func (m TokenExchanger) Token() (*oauth2.Token, error) {
token := oauth2.Token{}
err = json.Unmarshal(body, &token)
if err != nil {
fmt.Println(len(body))
fmt.Println(token)
fmt.Println(err)
return nil, err
}

// TODO: expires_in does not appear to be returned. Only access_token
expiresIn := token.Extra("expires_in")
if expiresIn != nil {
expiresInSeconds := expiresIn.(int)
Expand Down

0 comments on commit d1da961

Please sign in to comment.