From 4e3bd15b91ced035ddb489426544fa6e5e8e1a21 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Sat, 7 Oct 2023 23:10:14 -0400 Subject: [PATCH] wip: remove sensitive print lines and note deadcode Signed-off-by: Marques Johansson --- internal/loadbalancers/infrastructure/token_exchanger.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/loadbalancers/infrastructure/token_exchanger.go b/internal/loadbalancers/infrastructure/token_exchanger.go index 1c8552aa..43a47473 100644 --- a/internal/loadbalancers/infrastructure/token_exchanger.go +++ b/internal/loadbalancers/infrastructure/token_exchanger.go @@ -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)