Files
bface/src/security/model/Session.js
Amer Agovic 94a9f32969 Initial commit: bface library, build fixes, and refreshed docs
- Externalize all @tamagui/* and tamagui subpaths so dist no longer vendors Tamagui.
- Emit TypeScript declarations with vite-plugin-dts; fix package exports types for ui/*.
- Align initEnv with profiles: displayName, brandLogo, api.baseURL, themeColor, uiShell.
- Stabilize tests with Node localStorage file; env tests pass.
- Update README and component docs for services, menus, API client, and development.
2026-04-18 10:43:52 -05:00

13 lines
448 B
JavaScript

export class Session {
constructor(data = {}) {
this.user_id = data.user_id || null;
this.realm_id = data.realm_id || 'local';
this.jwt_token = data.jwt_token || '';
this.refresh_token = data.refresh_token || '';
this.issued_on = data.issued_on || new Date().toISOString();
this.expires_on = data.expires_on || null;
this.auth_provider = data.auth_provider || 'basic';
this.status = data.status || 'active';
}
}