@bagelink/auth 1.5.5 → 1.5.9
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.
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
- package/src/types.ts +3 -0
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -137,6 +137,8 @@ export interface User {
|
|
|
137
137
|
entityType?: string
|
|
138
138
|
/** Additional metadata */
|
|
139
139
|
metadata?: Record<string, any>
|
|
140
|
+
/** Person-specific info (only for person accounts) */
|
|
141
|
+
person?: PersonInfo
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
// ============================================
|
|
@@ -319,6 +321,7 @@ export function accountToUser(account: AccountInfo | null): User | null {
|
|
|
319
321
|
roles: account.person.roles,
|
|
320
322
|
isActive: account.is_active,
|
|
321
323
|
isVerified: account.is_verified,
|
|
324
|
+
person: account.person,
|
|
322
325
|
lastLogin: account.last_login,
|
|
323
326
|
}
|
|
324
327
|
}
|