Overview
The Timeback SDK supports two identity modes.SSO
Use Timeback as your identity provider
Custom
Use your existing auth system
SSO Mode
SSO mode uses Timeback as the identity provider via OIDC. The SDK automatically resolves the Timeback user by email and returnsTimebackAuthUser.
user object in onCallbackSuccess has this structure:
Custom Mode
Use custom mode when your app has its own authentication system.Identity-Only Mode
If you need only SSO, usecreateTimebackIdentity():
lib/timeback.ts
Sign-In Flow
The SDK provides aSignInButton component that initiates the SSO flow:
- React
- Vue
- Svelte
- Solid
User Verification
Verify if a user has a Timeback account:- React
- Vue
- Svelte
- Solid
Next Steps
Custom Activities
Track learning sessions
User Profile
Access user data and XP
Server Adapters
Framework integration
Client Adapters
Client components