@dads-framework/identity 0.5.1 → 0.6.0
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/README.md +4 -0
- package/dist/better-auth/lib/configure-better-auth.d.ts +8 -1033
- package/dist/better-auth/lib/configure-better-auth.d.ts.map +1 -1
- package/dist/better-auth/lib/configure-better-auth.js +7 -8
- package/dist/better-auth/lib/configure-better-auth.js.map +1 -1
- package/dist/better-auth/lib/create-better-auth-identity.d.ts.map +1 -1
- package/dist/better-auth/lib/create-better-auth-identity.js +7 -3
- package/dist/better-auth/lib/create-better-auth-identity.js.map +1 -1
- package/dist/better-auth/lib/enterprise-options.d.ts +3 -0
- package/dist/better-auth/lib/enterprise-options.d.ts.map +1 -1
- package/dist/better-auth/lib/enterprise-options.js +6 -0
- package/dist/better-auth/lib/enterprise-options.js.map +1 -1
- package/dist/better-auth/lib/enterprise-plugin.d.ts +0 -3
- package/dist/better-auth/lib/enterprise-plugin.d.ts.map +1 -1
- package/dist/better-auth/lib/enterprise-plugin.js +1 -7
- package/dist/better-auth/lib/enterprise-plugin.js.map +1 -1
- package/dist/better-auth/lib/enterprise-routes.d.ts.map +1 -1
- package/dist/better-auth/lib/enterprise-routes.js +1 -2
- package/dist/better-auth/lib/enterprise-routes.js.map +1 -1
- package/dist/better-auth/lib/identity-options.d.ts +3 -0
- package/dist/better-auth/lib/identity-options.d.ts.map +1 -1
- package/dist/better-auth/lib/identity-options.js.map +1 -1
- package/dist/better-auth/lib/identity-session-readers.d.ts.map +1 -1
- package/dist/better-auth/lib/identity-session-readers.js +1 -2
- package/dist/better-auth/lib/identity-session-readers.js.map +1 -1
- package/dist/identity.tsbuildinfo +1 -1
- package/dist/tenants/contract.d.ts +10 -0
- package/dist/tenants/contract.d.ts.map +1 -0
- package/dist/tenants/contract.js +5 -0
- package/dist/tenants/contract.js.map +1 -0
- package/dist/tenants/tenant-access.d.ts +3 -10
- package/dist/tenants/tenant-access.d.ts.map +1 -1
- package/dist/tenants/tenant-access.js +2 -4
- package/dist/tenants/tenant-access.js.map +1 -1
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -132,6 +132,10 @@ SCIM group membership is directory data. Application roles are managed separatel
|
|
|
132
132
|
See [SCIM Core Schema](https://www.rfc-editor.org/rfc/rfc7643) and
|
|
133
133
|
[SCIM Protocol](https://www.rfc-editor.org/rfc/rfc7644).
|
|
134
134
|
|
|
135
|
+
## Tenant contracts
|
|
136
|
+
|
|
137
|
+
Import `tenantIdSchema`, `assignableTenantRoleSchema`, `tenantRoles`, `TenantId`, and `TenantRole` from `@dads-framework/identity/tenants/contract` in shared or browser code. That subpath depends only on `zod` and avoids Node built-ins and database modules pulled in by `@dads-framework/identity/tenants`.
|
|
138
|
+
|
|
135
139
|
## Staff impersonation
|
|
136
140
|
|
|
137
141
|
Use a short-lived grant to let a staff member act as a specific account in one tenant. The caller keeps their own session, so the audit trail can record who acted and on whose behalf. [Configure staff impersonation](./src/impersonation/README.md)
|