wiki-viewer 1.4.0 → 1.4.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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/signin.html +1 -1
- package/.next/standalone/.next/server/app/signin.rsc +1 -1
- package/.next/standalone/.next/server/app/signin.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/signin.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/signin.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/signin.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/signin.segments/signin/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/signin.segments/signin.segment.rsc +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d89o98._.js +8 -8
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/README.md +13 -0
- package/.next/standalone/bin/wiki-viewer.js +1 -0
- package/.next/standalone/docs/agent-fs-plan.md +172 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/src/lib/auth/server.ts +24 -0
- package/.next/standalone/tsconfig.tsbuildinfo +1 -1
- package/README.md +13 -0
- package/bin/wiki-viewer.js +1 -0
- package/package.json +1 -1
- /package/.next/standalone/.next/static/{NrsmW_X8LPcbZaXnFEEgh → OwXjVuoXDC_gda_BKji1J}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{NrsmW_X8LPcbZaXnFEEgh → OwXjVuoXDC_gda_BKji1J}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{NrsmW_X8LPcbZaXnFEEgh → OwXjVuoXDC_gda_BKji1J}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -192,6 +192,19 @@ wiki-viewer service restart
|
|
|
192
192
|
|
|
193
193
|
The sign-in page then shows only the Google button. As a safety guard, this is ignored unless a Google provider is configured, so you cannot lock yourself out: if `GOOGLE_CLIENT_ID`/`GOOGLE_CLIENT_SECRET` are missing, email/password stays on and a warning is logged.
|
|
194
194
|
|
|
195
|
+
### Linking Google to an existing account
|
|
196
|
+
|
|
197
|
+
Better Auth only auto-links a Google sign-in to an existing account when both sides have a verified email. If you created a password account first (with an unverified email) and then try Google sign-in with the same address, you get an `account_not_linked` error.
|
|
198
|
+
|
|
199
|
+
To force linking, list the provider in `AUTH_TRUSTED_PROVIDERS`:
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
wiki-viewer config set AUTH_TRUSTED_PROVIDERS=google
|
|
203
|
+
wiki-viewer service restart
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
This links Google to the existing account even when its email is unverified. It slightly raises account-takeover risk, so enable it only when you control the accounts (for example, consolidating your own login onto Google).
|
|
207
|
+
|
|
195
208
|
### Email allowlist
|
|
196
209
|
|
|
197
210
|
By default any email can sign up. Lock it down before exposing the server.
|
package/bin/wiki-viewer.js
CHANGED
|
@@ -703,6 +703,7 @@ const WIZARD_ENV_VARS = [
|
|
|
703
703
|
{ key: "GOOGLE_CLIENT_ID", hint: "Google OAuth client ID (enables Google sign-in)" },
|
|
704
704
|
{ key: "GOOGLE_CLIENT_SECRET", hint: "Google OAuth client secret" },
|
|
705
705
|
{ key: "AUTH_DISABLE_PASSWORD", hint: "Set to 1 to allow Google sign-in only (requires Google keys)" },
|
|
706
|
+
{ key: "AUTH_TRUSTED_PROVIDERS", hint: "Auto-link these providers to existing accounts, e.g. google" },
|
|
706
707
|
{ key: "WIKI_OWNER_HOSTS", hint: "Extra hostnames trusted for the AI panel owner cookie" },
|
|
707
708
|
{ key: "AGENT_RATE_LIMIT", hint: "Per-minute agent API rate limit (default 60)" },
|
|
708
709
|
];
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|