I am using Snowflake.Client with IServiceCollection.AddHttpClient<TClient>. There are times when my service has been idle for long periods and the next Snowflake.Client API call fails with 'Authentication token has expired. The user must authenticate again.'
According to Snowflake, the master authentication token has an expiration of 4 hours. After 4 hours of inactivity, the token can no longer be used for session renewal. Clients must re-authenticate in order to receive a new master token.
In addition to automatic session renewal, it would be great if Snowflake.Client also supported automatic re-authentication when session renewal fails.
I am using Snowflake.Client with
IServiceCollection.AddHttpClient<TClient>
. There are times when my service has been idle for long periods and the next Snowflake.Client API call fails with 'Authentication token has expired. The user must authenticate again.'According to Snowflake, the master authentication token has an expiration of 4 hours. After 4 hours of inactivity, the token can no longer be used for session renewal. Clients must re-authenticate in order to receive a new master token.
In addition to automatic session renewal, it would be great if Snowflake.Client also supported automatic re-authentication when session renewal fails.