Skip to main content

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 returns TimebackAuthUser.
The user object in onCallbackSuccess has this structure:

Custom Mode

Use custom mode when your app has its own authentication system.
The SDK resolves the Timeback user by email. You only need to provide the authenticated user’s email address.

Identity-Only Mode

If you need only SSO, use createTimebackIdentity():
lib/timeback.ts

Sign-In Flow

The SDK provides a SignInButton component that initiates the SSO flow:

User Verification

Verify if a user has a Timeback account:

Next Steps

Custom Activities

Track learning sessions

User Profile

Access user data and XP

Server Adapters

Framework integration

Client Adapters

Client components