create-feltkit 0.3.6 → 0.3.7
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/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -244,6 +244,17 @@ without their FeltDB settings.
|
|
|
244
244
|
docker run --rm -v tasks-data:/data tasks node node_modules/@feltdb/feltkit/bin/feltkit.js session create --env production --type user --id you --role member
|
|
245
245
|
```
|
|
246
246
|
|
|
247
|
+
**On AppBoundry** (`npx feltkit build --target appboundry`, then `appboundry run tasks.app`),
|
|
248
|
+
`feltkit session create` does not apply: the artifact runs without this project or FeltKit's
|
|
249
|
+
CLI. AppBoundry's operators create users with your app's roles and issue their sessions:
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
appboundry admin users add you --role member --state <installation>
|
|
253
|
+
appboundry admin sessions issue --user you --state <installation>
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
See AppBoundry's production operations guide for bootstrapping the first operator.
|
|
257
|
+
|
|
247
258
|
For real users, add `auth.authenticate` to `feltkit({ ... })` to verify requests with your
|
|
248
259
|
identity provider.
|
|
249
260
|
|
package/template/_gitignore
CHANGED
package/template/package.json
CHANGED
package/template/src/App.tsx
CHANGED
|
@@ -144,10 +144,12 @@ function TokenSignIn() {
|
|
|
144
144
|
return (
|
|
145
145
|
<form className="stack" onSubmit={submit}>
|
|
146
146
|
<p className="muted">
|
|
147
|
-
Sign in with a session token. <code>npx feltkit vercel deploy</code>
|
|
148
|
-
deployment's FeltDB settings from <code>.env.local</code>):
|
|
147
|
+
Sign in with a session token from whoever runs this deployment. If FeltKit deployed it, <code>npx feltkit vercel deploy</code> printed yours the first time; to make another, run
|
|
148
|
+
this in your project's folder (it uses your deployment's FeltDB settings from <code>.env.local</code>):
|
|
149
149
|
</p>
|
|
150
150
|
<code className="block">npx feltkit session create --env production --type user --id you --role member</code>
|
|
151
|
+
<p className="muted">If AppBoundry runs this app (from its <code>.app</code> artifact), its operator creates your user and issues your session instead:</p>
|
|
152
|
+
<code className="block">appboundry admin sessions issue --user you --state <installation></code>
|
|
151
153
|
<input type="password" value={token} onChange={(e) => setToken(e.target.value)} placeholder="Session token (fks_…)" aria-label="Session token" autoComplete="off" />
|
|
152
154
|
<button type="submit" disabled={!token.trim()}>
|
|
153
155
|
Sign in
|