Overview
The Timeback SDK provides a Nuxt adapter using server middleware.Installation
Server Setup
Create a server-only Timeback instance. The session helpers below belong to your application: persist the callback user in your authenticated session, and return that session user (includingemail) or null from getUser. These helpers are not SDK exports. Keep API and SSO secrets on the server:
server/lib/timeback.ts
Server Middleware
Create middleware to handle Timeback routes:server/middleware/timeback.ts
Alternative: Route-Based Handler
For more control, you can use a route-based approach instead of middleware:server/api/timeback/[...path].ts
Client Provider
Wrap your app with the TimebackProvider:app.vue
Usage
Use composables in components:components/UserStatus.vue
Next Steps
Vue Client
Client-side Vue integration
Identity
Authentication options
Custom Activities
Track learning sessions