Skip to content

Commit 99865c1

Browse files
authored
Merge pull request #405 from Harishrs2006/fix/oauth-token-leak-login-log
fix(login): remove unconditional logging of OAuth2 access and refresh tokens
2 parents 96867dd + 90e249c commit 99865c1

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

cmd/login.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,6 @@ func oauth2login(
293293
ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
294294
defer cancel()
295295
_ = srv.Shutdown(ctx)
296-
log.Printf("Token: %s\n", tokenString)
297-
log.Printf("Refresh Token: %s\n", refreshToken)
298296
return tokenString, refreshToken
299297
}
300298

0 commit comments

Comments
 (0)