Using API v1? See what changes in v2, or the v1 docs
AUTH_INVALID_CONNECT_SESSION
The connect session is missing, invalid, expired or already used.
HTTP status: 401. Retrying the same request returns the same error.
What to do
Create a new connect session (POST /v2/connect/sessions) for each connection, and use it within 10 minutes.
Hint returned with the error: Create a new connect session on your server and try again.
Why it happens
- The session is older than 10 minutes
- The session was already used to connect an account
- The token was copied incorrectly
Endpoints that return it
- Get the consent URL (popup mode)
POST /v2/connect/authorize - Complete a connection
POST /v2/connect/complete - Get connect widget details
POST /v2/connect/info