@passflow/react 0.26.0 → 0.26.2
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 +16 -0
- package/README.md +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +104 -105
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/flow/passflow/flow-router.d.cts +1 -0
- package/dist/src/components/flow/passflow/flow-router.d.ts +1 -0
- package/dist/src/components/flow/passflow/flow-router.d.ts.map +1 -1
- package/dist/src/components/flow/passflow/index.d.cts +1 -1
- package/dist/src/components/flow/passflow/index.d.ts +1 -1
- package/dist/src/components/flow/passflow/index.d.ts.map +1 -1
- package/dist/src/components/form/invitation-join/index.d.ts.map +1 -1
- package/dist/src/context/auth-context.d.cts +4 -0
- package/dist/src/context/auth-context.d.ts +4 -0
- package/dist/src/context/auth-context.d.ts.map +1 -1
- package/dist/src/dev-in-app-sign-in.d.cts +2 -0
- package/dist/src/dev-in-app-sign-in.d.ts +2 -0
- package/dist/src/dev-in-app-sign-in.d.ts.map +1 -0
- package/dist/src/hooks/use-hydrated.d.cts +7 -0
- package/dist/src/hooks/use-hydrated.d.ts +7 -0
- package/dist/src/hooks/use-hydrated.d.ts.map +1 -0
- package/dist/src/hooks/use-two-factor-setup.d.ts.map +1 -1
- package/dist/src/hooks/use-user.d.ts.map +1 -1
- package/dist/src/utils/index.d.cts +1 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/is-sign-in-page.d.cts +5 -0
- package/dist/src/utils/is-sign-in-page.d.ts +5 -0
- package/dist/src/utils/is-sign-in-page.d.ts.map +1 -1
- package/dist/src/utils/upgrade-auth.d.cts +7 -4
- package/dist/src/utils/upgrade-auth.d.ts +7 -4
- package/dist/src/utils/upgrade-auth.d.ts.map +1 -1
- package/dist/src/utils/validation-schemas/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@passflow/react` are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.26.2] - 2026-11-20
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- A server-rendered page (Next.js, TanStack Start or any SSR framework) no longer logs "Hydration failed because the server rendered text didn't match the client" (React error 418) when a signed-in user reloads it. The server has no session, so it renders signed out; the browser now hydrates signed out too and shows the session in the render right after hydration. This covers `<LoginButton />`, `useAuth().isSignedIn`, `useUser()`, `usePassflowStore()` (which also no longer throws "Missing getServerSnapshot" on the server), the two-factor setup form and the invitation screen. A page rendered only in the browser shows the session from its first render, as before.
|
|
10
|
+
- `PassflowFlow` no longer throws "Missing getServerSnapshot" during hydration. Render `PassflowFlow` only on the client for now: it reads browser globals during render.
|
|
11
|
+
|
|
12
|
+
## [0.26.1] - 2026-11-19
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- A sign-in through `PassflowFlow` whose `successAuthRedirect` is a full address on the page's own origin (`"http://localhost:5173/"`) no longer loads the page again. On the flow's built-in browser router, the flow moves to that path, query and fragment in the app, so the page draws once. Hash and memory flows, a `location` and `navigate` the app passes, and the hosted login page (`federatedLanding="login-page"`) still load such an address.
|
|
17
|
+
- The password length rule counts characters (code points), as the server does. An emoji counts as one, so the form no longer accepts an emoji password the server refuses.
|
|
18
|
+
- The free `withAuth(fetch, options)` and `attachAuth(instance, options)` take `origins`, like `usePassflow().withAuth` and `passflow.attachAuth`. Without it, a call to another origin went without a token.
|
|
19
|
+
- `dist/style.css` holds no empty `url()`. `--passflow-background-image` defaults to `none`, and a Next.js 16 app with Turbopack builds with the stylesheet imported. The build fails if any shipped stylesheet holds an empty `url()`.
|
|
20
|
+
|
|
5
21
|
## [0.26.0] - 2026-11-19
|
|
6
22
|
|
|
7
23
|
### Added
|
package/README.md
CHANGED
|
@@ -306,6 +306,8 @@ function AuthPage() {
|
|
|
306
306
|
}
|
|
307
307
|
```
|
|
308
308
|
|
|
309
|
+
With a location the app passes, a sign-in whose `successAuthRedirect` is a full address loads that page, as before; only the built-in browser router moves there in the app without a reload.
|
|
310
|
+
|
|
309
311
|
`TwoFactorSetupMagicLinkFlow` can also be mounted on its own page. It reads the token from the URL (the segment after `/two-factor-setup-magic-link/`), or takes it as a `token` prop.
|
|
310
312
|
|
|
311
313
|
### Login button
|