@objectstack/plugin-auth 4.0.4 → 4.1.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 -1
- package/dist/index.d.mts +441 -19940
- package/dist/index.d.ts +441 -19940
- package/dist/index.js +704 -900
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +699 -880
- package/dist/index.mjs.map +1 -1
- package/package.json +35 -12
- package/.turbo/turbo-build.log +0 -78
- package/ARCHITECTURE.md +0 -176
- package/CHANGELOG.md +0 -333
- package/IMPLEMENTATION_SUMMARY.md +0 -192
- package/examples/basic-usage.ts +0 -107
- package/objectstack.config.ts +0 -24
- package/src/auth-manager.test.ts +0 -883
- package/src/auth-manager.ts +0 -419
- package/src/auth-plugin.test.ts +0 -446
- package/src/auth-plugin.ts +0 -314
- package/src/auth-schema-config.ts +0 -339
- package/src/index.ts +0 -16
- package/src/objectql-adapter.test.ts +0 -281
- package/src/objectql-adapter.ts +0 -279
- package/src/objects/auth-account.object.ts +0 -7
- package/src/objects/auth-session.object.ts +0 -7
- package/src/objects/auth-user.object.ts +0 -7
- package/src/objects/auth-verification.object.ts +0 -7
- package/src/objects/index.ts +0 -40
- package/src/objects/sys-account.object.ts +0 -111
- package/src/objects/sys-api-key.object.ts +0 -104
- package/src/objects/sys-invitation.object.ts +0 -93
- package/src/objects/sys-member.object.ts +0 -68
- package/src/objects/sys-organization.object.ts +0 -82
- package/src/objects/sys-session.object.ts +0 -84
- package/src/objects/sys-team-member.object.ts +0 -61
- package/src/objects/sys-team.object.ts +0 -69
- package/src/objects/sys-two-factor.object.ts +0 -73
- package/src/objects/sys-user-preference.object.ts +0 -82
- package/src/objects/sys-user.object.ts +0 -91
- package/src/objects/sys-verification.object.ts +0 -75
- package/tsconfig.json +0 -18
package/README.md
CHANGED
|
@@ -28,6 +28,9 @@ Authentication & Identity Plugin for ObjectStack.
|
|
|
28
28
|
- ✅ **Passkeys** - WebAuthn/Passkey support (when enabled)
|
|
29
29
|
- ✅ **Magic Links** - Passwordless authentication (when enabled)
|
|
30
30
|
- ✅ **Organizations** - Multi-tenant support (when enabled)
|
|
31
|
+
- ✅ **Bearer-token Auth** - Cross-origin and mobile clients can authenticate
|
|
32
|
+
via `Authorization: Bearer <token>` and receive rotated tokens on the
|
|
33
|
+
`set-auth-token` response header (always enabled, no config required).
|
|
31
34
|
|
|
32
35
|
### ObjectQL-Based Database Architecture
|
|
33
36
|
- ✅ **Native ObjectQL Data Persistence** - Uses ObjectQL's IDataEngine interface
|
|
@@ -178,7 +181,7 @@ This architecture provides:
|
|
|
178
181
|
- ✅ **Full compatibility** - All better-auth features work automatically
|
|
179
182
|
- ✅ **Easy updates** - Better-auth updates don't require code changes
|
|
180
183
|
- ✅ **Type safety** - Full TypeScript support from better-auth
|
|
181
|
-
- ✅ **Programmatic API** - Access auth methods via `authManager.
|
|
184
|
+
- ✅ **Programmatic API** - Access auth methods via `await authManager.getApi()`
|
|
182
185
|
|
|
183
186
|
#### ObjectQL Database Architecture
|
|
184
187
|
|