RegardingWork Hub API Documentation
Centralized authentication and Single Sign-On service for the RegardingWork ecosystem
Overview
Our RESTful API enables secure authentication and user management across all RegardingWork services (Game, Premium, Display).
Base URL:
https://hub.regardingwork.com/api
Authentication:
JWT Bearer tokens (24-hour expiration)Content-Type:
application/json
CORS:
Enabled for RegardingWork subdomainsQuick Start
Ready to integrate authentication with RegardingWork Hub?
New to RegardingWork Hub?
Get your app integrated with Hub authentication in under 2 hours.
Get StartedHaving Issues?
Fix common authentication problems with step-by-step solutions.
Fix IssuesAPI Reference
Detailed documentation for all endpoints and OAuth flows.
View API DocsHub Authentication System Status: ✅ Operational
SSO domain validation fixed • OAuth token exchange working • Ready for all RegardingWork apps
janechen / jane123
Features
- JWT Authentication (24-hour tokens)
- Refresh token system (30-day)
- OAuth 2.0 Authorization Code Flow
- PKCE Security Extension
- Single Sign-On (SSO) integration
- User registration and management
- Profile management endpoints
- Secure password hashing (scrypt)
- Cross-domain CORS support
- Token blacklisting for security
Core API Endpoints
Authentication & User Management
Endpoint | Method | Description |
---|---|---|
/api/auth/register |
POST | Register new user account |
/api/auth/login |
POST | Authenticate user and get tokens |
/api/auth/logout |
POST | Logout user and blacklist tokens |
/api/auth/validate |
GET | Validate JWT token |
/api/auth/refresh |
POST | Refresh access token |
/api/auth/me |
GET | Get current user data |
OAuth 2.0 Endpoints
Endpoint | Method | Description |
---|---|---|
/api/oauth/authorize |
GET | OAuth 2.0 authorization endpoint |
/api/oauth/token |
POST | Exchange authorization code for tokens |
Single Sign-On (SSO)
Endpoint | Method | Description |
---|---|---|
/api/auth/sso/authorize |
GET | SSO authorization endpoint |
/api/auth/sso/token |
POST | Get SSO token for authenticated user |
Live API Demo
Test the API endpoints right here:
Health Check Test
Complete Documentation Index
🚀 Getting Started
- Standardized Authentication Guide
Choose between Simple SSO vs OAuth 2.0 for your app - Quick Start Guide
Get up and running in minutes - SSO Integration Guide
Step-by-step SSO implementation
🛠️ Troubleshooting
- Complete Troubleshooting Guide
Fix domain errors, login failures, and token issues - Test Credentials & Debugging
Use janechen/jane123 for testing
📚 API Reference
- Authentication API
Login, register, validate endpoints - OAuth 2.0 Documentation
Authorization code flow with PKCE - OAuth Authorization Flow
Detailed OAuth implementation - PKCE Security Extension
Proof Key for Code Exchange
🔗 External Resources
- Test Hub Login
Try authentication with test credentials - SSO Domain Management
Admin panel for allowed domains
Need Help?
Start with the Standardized Authentication Guide to choose the right method for your app, then follow the specific implementation guide.
Having issues? Check the Troubleshooting Guide for solutions to common problems.