@absolutejs/auth 0.81.0 → 0.82.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/CHANGELOG.md +6 -0
- package/changelog.json +15 -2
- package/dist/credentials/integration.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -3
- package/dist/index.js.map +4 -4
- package/dist/manifest.js +9 -5
- package/dist/manifest.js.map +3 -3
- package/dist/routes/signout.d.ts +192 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.js +13 -3
- package/dist/server.js.map +5 -5
- package/docs/PERSISTENT-CREDENTIALS.md +15 -0
- package/package.json +1 -1
|
@@ -129,3 +129,18 @@ when absent, and scope database access to that user. Export the narrow business
|
|
|
129
129
|
subapp type for its own Eden client inside React Query. A compiler pass is
|
|
130
130
|
necessary, but real signup, login, reset, authorization and persistence tests
|
|
131
131
|
are still required.
|
|
132
|
+
|
|
133
|
+
## Typed sign-out (0.82.0+)
|
|
134
|
+
|
|
135
|
+
For a credentials-only application, mount `createSignoutApi({ authSessionStore })`
|
|
136
|
+
from `@absolutejs/auth/server` alongside `createCredentialsApi`. This provides
|
|
137
|
+
DELETE `/oauth2/signout` with the package's existing revocation and cookie policy.
|
|
138
|
+
Export that narrow subapp and call `treaty<typeof sessionApi>(origin).oauth2.signout.delete()`
|
|
139
|
+
inside a React Query mutation. Check errors before clearing client state. Do not
|
|
140
|
+
create a raw fetch fallback or a forwarding endpoint. When also mounting full
|
|
141
|
+
`auth` for OAuth, its default sign-out path is already present; do not register
|
|
142
|
+
duplicate sign-out handlers with different stores or hooks.
|
|
143
|
+
|
|
144
|
+
Elysia 2 business routes with request schemas use
|
|
145
|
+
`.post('/api/bookings', { body: t.Object({ classId: t.String() }) }, ({ body }) => ...)`.
|
|
146
|
+
The schema/options argument precedes the handler.
|
package/package.json
CHANGED