How to refresh a Snowflake token

Created by Steve Place, Modified on Mon, Sep 16 at 10:30 PM by Steve Place

If you're using a Snowflake virtual graph and don't want to re-enter credentials every 4 hours to get a new token, you can set the connection pool option maxAge to some value less than 4 hours. Per the Tomcat docs, maxAge is "Time in milliseconds to keep a connection before recreating it." 4 hours is 14,400,000 milliseconds, so set maxAge to a value lower than this for the connection to be recreated before the timeout.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article