Skip to content

Commit fc5b108

Browse files
authored
Update readme (#8)
1 parent b55176e commit fc5b108

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ const k8sauth = client.KubernetesAuth({
4545
role: "myrole",
4646
});
4747

48-
await client.Auth(k8sauth).enableAutoRenew();
49-
50-
client.on("error", (e) => console.log(e));
48+
const onAutoRenewError = (e) => console.error(e);
49+
await client.Auth(k8sauth).enableAutoRenew(onAutoRenewError);
5150

5251
client
5352
.Health()

0 commit comments

Comments
 (0)