@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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.81.0",
2
+ "version": "0.82.0",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {