@qwanyx/stack 0.2.103 → 0.2.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,6 +53,9 @@ export interface SystemUser {
53
53
  modified: number;
54
54
  lastLogin?: number;
55
55
  isDigitalHuman: boolean;
56
+ domains?: string[];
57
+ primaryDomain?: string;
58
+ tenantDomain?: string;
56
59
  }
57
60
  export interface ListUsersResult {
58
61
  success: boolean;
@@ -181,6 +184,11 @@ export declare class AuthService {
181
184
  * Check if user is authenticated
182
185
  */
183
186
  isAuthenticated(): boolean;
187
+ /**
188
+ * Add a domain to user's domains array
189
+ * Called after successful login to track which domains a user has accessed
190
+ */
191
+ addDomainToUser(userId: string, domain: string): Promise<UserOperationResult>;
184
192
  /**
185
193
  * List all users in the platform (from system.db)
186
194
  */