How to fix login (token) errors

Prev Next

This guide will walk you through what causes and how to fix login errors, also known as token errors. These errors occur when your connection login (access token) to the data source has expired, and the system isn’t able to refresh it. To resolve token issues, you need to renew your connection to the data source.

Examples of the error messages include: 

  • Failed error: Unable to refresh your token. It may not be valid anymore. Please try logging out and logging in again.

  • Facebook Ads: Error validating access token: the session has been invalidated because the user changed their password or Facebook has changed the session for security reasons.

  • Error: Account fetch failed: [Data source] failure (Refreshing token failed)

  • [Data source] failure (Error Validating Access token: Session Has Expired)

  • [Data source] failure (Error Validating Access token: The user has not authorized application)

  • Error validating access token: Sessions for the user are not allowed because the user is not a confirmed user. 

  • Account fetch failed:[Data source] (The token used in the request has expired).

What causes these errors?

Most of the time, Supermetrics is able to programmatically and automatically renew the connection using an access or refresh token. These tokens don’t live forever, though, and once they do expire, your action is required to renew the connection and generate a new token.

In most cases, token expiration is due to data source API limitations on how long the access token can live for, and is a security measure to protect you. Access that never expires is easier to exploit if it falls into the wrong hands!

User action and changes in credentials can also make the token expire. So if you update your password or enable 2FA, you’ll need to renew your Supermetrics connections immediately.

Here are the reasons for token expiration, from most common to least common:

  • The API or data source platform has a hard limit on the lifetime of the token, and it has reached its maximum and can’t be refreshed again

  • Lack of regular use causes the refresh token to go stale, and it can’t be reused to renew the connection (access token)

  • The user has changed their password, which invalidates existing tokens

  • The user has enabled two-factor authentication (2FA), which invalidates existing tokens

  • The user has removed the Supermetrics integration from their account through the data source platform UI, which invalidates existing tokens

  • The system administrator for data source platform removed the user, which invalidates the tokens associated with that user account

  • The data source platform has invalidated the tokens for safety reasons, such as a breach or other security event

Instructions

  1. Follow our reauthentication guides to reconnect to the data source.

  2. Renew the data source connection login (access token). 

  3. Clear your browser's cache and cookies. Follow the instructions for the browser you use with Supermetrics. We’ve included some links to common browser guides here: