@sylphx/auth-solid 0.1.0 → 0.1.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/README.md +19 -0
- package/dist/browser.js +399 -285
- package/dist/messages.d.ts +75 -0
- package/dist/server.js +175 -52
- package/dist/sign-in-controller.d.ts +11 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -55,3 +55,22 @@ The widget does not change the language of email sent by the Auth service.
|
|
|
55
55
|
Headless clients can render `signInMessages[locale].errors[errorCode]` when
|
|
56
56
|
`controller.errorCode()` is nonempty. The existing `controller.error()` still
|
|
57
57
|
returns English for callers that have not switched to catalogs.
|
|
58
|
+
|
|
59
|
+
### Server-rendered methods, clickwrap, and passkeys
|
|
60
|
+
|
|
61
|
+
Load the public config route from a server loader and pass its JSON as
|
|
62
|
+
`initialConfig`, using the same value on SSR and hydration. This renders the
|
|
63
|
+
configured Google and email entries in the first HTML, before JavaScript runs.
|
|
64
|
+
The interactive widget still needs JavaScript; omitting the seed preserves the
|
|
65
|
+
client config fetch. Set the same `routePrefix` as the server handler if you
|
|
66
|
+
mount it anywhere other than `/auth`.
|
|
67
|
+
|
|
68
|
+
Render your consent UI using `agreement` or your own layout. Use
|
|
69
|
+
`getAcceptance={() => agreed() ? { terms: termsVersion, privacy: privacyVersion } : undefined}`
|
|
70
|
+
so requests send only the versions the user actually accepted. Configure
|
|
71
|
+
server-side `clickwrap` to enforce those versions; the UI alone is not a gate.
|
|
72
|
+
|
|
73
|
+
Set `conditionalPasskey` to opt into discoverable credential autofill on the
|
|
74
|
+
first sign-in screen. The identifier input uses `username webauthn` when
|
|
75
|
+
passkeys are configured. Unsupported or canceled conditional requests fall
|
|
76
|
+
back to the existing explicit passkey and other enabled sign-in controls.
|