fix: check that renew statement actually exists

This commit is contained in:
Scott Wilson
2024-10-31 10:27:55 -07:00
parent 7dd6eac20a
commit 3912e2082d

View File

@@ -134,6 +134,8 @@ export const SnowflakeProvider = (): TDynamicProviderFns => {
const renew = async (inputs: unknown, username: string, expireAt: number) => {
const providerInputs = await validateProviderInputs(inputs);
if (!providerInputs.renewStatement) return;
const client = await getClient(providerInputs);
try {