Division Integration API

How to integrate your division app with SphereUs.com

Single Sign-On (SSO)

Step 1: Redirect to SphereUs Login

When a user needs to log in, redirect them to:

https://wompusgames.com?sso_return=YOUR_DIVISION_URL

Replace YOUR_DIVISION_URL with your app's callback URL (e.g., https://yourdivision.com/auth/callback)

Step 2: Receive User Token

After login, user is redirected back with:

YOUR_DIVISION_URL?token=xxx&user_id=xxx&email=xxx

Step 3: Store & Use Token

Store the token in localStorage and use it for API calls:

localStorage.setItem('sphereus_token', token); // Use in API calls const response = await fetch('https://wompusgames.com/api/...', { headers: { 'Authorization': 'Bearer ' + token } });

💡 Need Help?

Contact the SphereUs platform team for API keys, testing, or implementation support.