@zukhruf/authentication 0.8.39 → 0.8.41
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 +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -195,3 +195,18 @@ Node has no session or authentication API (a search of the exports of every buil
|
|
|
195
195
|
| blackboard (#4728) | `requireIdentity` and `redirectDestination` in `apps/web/src/auth.ts`; the `userId` middleware in `apps/api/src/app.ts` | React Router `requireSession` and `safeRedirect`; its `redirect` query parameter becomes `redirectTo` |
|
|
196
196
|
| text2sql authx, v2, desktop | an identity provider and its JWT clients | stay; the JWT is the "later" column |
|
|
197
197
|
| iworked, pm, Kortext regression | dormant or a client's repo | left out (Ezz, 2026-11-19) |
|
|
198
|
+
|
|
199
|
+
## Documentation
|
|
200
|
+
|
|
201
|
+
**Recipes**
|
|
202
|
+
|
|
203
|
+
- [Send a visitor back to the page they asked for after sign-in](./docs/recipes/send-a-visitor-back-after-sign-in.md)
|
|
204
|
+
|
|
205
|
+
**Decisions**
|
|
206
|
+
|
|
207
|
+
- [ADR 0001](./docs/adr/0001-the-package-is-zukhruf-authentication-an-island-that-takes-hono-and-react-router-as-peers.md): the package is @zukhruf/authentication, an island that takes Hono and React Router as peers.
|
|
208
|
+
- [ADR 0002](./docs/adr/0002-the-package-only-requires-a-session-and-better-auths-getsession-reads-one.md): the package only requires a session, and better-auth's getSession reads one.
|
|
209
|
+
- [ADR 0003](./docs/adr/0003-the-session-lands-on-the-context-as-better-auths-own-session-typed-by-a-generic-env.md): the session lands on the context as better-auth's own session, typed by a generic Env.
|
|
210
|
+
- [ADR 0004](./docs/adr/0004-a-refusal-is-an-httpexception-401-without-a-session-and-403-without-two-factor.md): a refusal is an HTTPException: 401 without a session, 403 without two-factor.
|
|
211
|
+
- [ADR 0005](./docs/adr/0005-the-route-guard-sends-the-path-and-query-as-redirectto-and-safe-redirect-keeps-it-on-the-origin.md): the route guard sends the path and query as redirectTo, and safeRedirect keeps it on the origin.
|
|
212
|
+
- [ADR 0006](./docs/adr/0006-a-failed-session-read-is-authentication-unavailable-never-signed-out.md): a failed session read is AuthenticationUnavailableError, never "signed out".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zukhruf/authentication",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.41",
|
|
4
4
|
"description": "The better-auth session at the edges of an app: a Hono middleware that refuses a request without a session or without two-factor, and a React Router loader guard that sends a visitor to sign in and back on a safe return path.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|