I'm currently handling the TTL expiring like this:
Secret v2Secret;
try
{
v2Secret = await this.vaultClient.V1.Secrets.KeyValue.V2.ReadSecretAsync(vaultPath).ConfigureAwait(false);
}
catch (VaultApiException e)
{
this.vaultClient.V1.Auth.ResetVaultToken();
v2Secret = await this.vaultClient.V1.Secrets.KeyValue.V2.ReadSecretAsync(vaultPath).ConfigureAwait(false);
}
Is there a way for me to check the TTL the vaultClient has before I make the first ReadSecretAsync call?