Fix Snowflake invalid_grant Token Error - Skyvia

Snowflake: invalid_grant Access Token Error

Overview

The invalid_grant error comes from your Snowflake connection because it has become invalid. By default, the Snowflake OAuth refresh token is valid for 90 days. Once it expires, the connection can no longer authenticate and returns this error.

Resolution

Step 1: Re-authenticate the Snowflake connection in Skyvia

  1. Go to SkyviaConnections.
  2. Find and open your Snowflake connection.
  3. Click Edit.
  4. Click Sign in with Snowflake to re-authenticate via OAuth.
  5. After successful authorization, click Save.
  6. Click Test Connection to verify.

Step 2: Extend the token validity period (optional)

If you want to change the default 90-day token validity period, ask your Snowflake account administrator to contact Snowflake Support with the request.

After the validity period is changed, you need to re-authenticate in the Skyvia Snowflake connector to obtain a new token with the updated expiry.