⚠️
Authentication Error
Unable to process your authentication request
Invalid or expired authentication request
The state parameter is invalid or has expired. Please restart the authentication flow from your application.
💡 How XactoAuth Authentication Works

XactoAuth uses a secure OAuth 2.0 flow that requires these steps:

  1. Initiate: Your app calls the API to generate a state parameter
  2. Redirect: User is redirected to XactoAuth with the state
  3. Authenticate: User signs in on this page
  4. Callback: User is redirected back with an authorization code
  5. Exchange: Your app exchanges the code for an access token

Correct Flow Example:

// Step 1: Call initiate endpoint POST /api/v1/auth.php?action=initiate { "api_key": "xauth_live_...", "redirect_uri": "..." } // Step 2: Redirect user to returned auth_url // The auth_url will have the correct state parameter
🔧 Need Help?

If you're a developer integrating XactoAuth: