@protobase/cli 0.104.1 → 0.105.0

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.104.1";
2
+ var version = "0.105.0";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.104.1",
3
+ "version": "0.105.0",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.104.1",
47
- "@protobase/layout": "0.104.1",
48
- "@protobase/query": "0.104.1",
49
- "@protobase/schema": "0.104.1",
50
- "@protobase/server": "0.104.1",
51
- "@protobase/ui": "0.104.1",
52
- "@protobase/workflows": "0.104.1",
46
+ "@protobase/config": "0.105.0",
47
+ "@protobase/layout": "0.105.0",
48
+ "@protobase/query": "0.105.0",
49
+ "@protobase/schema": "0.105.0",
50
+ "@protobase/server": "0.105.0",
51
+ "@protobase/ui": "0.105.0",
52
+ "@protobase/workflows": "0.105.0",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",
@@ -399,7 +399,7 @@ On their account page, people turn on a second step after a password or an email
399
399
 
400
400
  Turning it on, off, or making new backup codes asks for the account's password when it has one. Without one, turning it on, reading the authenticator link (`/two-factor/get-totp-uri`) or making new backup codes from a session that signed in more than a day ago asks to [confirm it's them](#confirming-an-account-change) first, and the account page asks for it in place. At sign-in, a correct password or code, or a [sign-in token](#token-sign-in), answers `{ "twoFactorRedirect": true, "twoFactorMethods": ["totp", "otp"] }` instead of a session, and `POST /api/auth/two-factor/verify-totp`, `verify-otp` or `verify-backup-code` with `{ code, trustDevice? }` finishes it; `trustDevice` skips the step in that browser for 30 days. Ten wrong codes in a row lock the account's second step for 15 minutes.
401
401
 
402
- Sign-in with GitHub or another [provider](#sign-in-with-github) through its pages is not asked for the second step.
402
+ Signing in through a provider's pages is one factor too, for the app's own [providers](#sign-in-with-github), the [platform's](#platform-sign-in-provider) and [SAML](#sign-in-with-saml) ones alike, since the app cannot check the provider's own second step. A person who turned the second step on comes back from the provider to the page they started from with `?second-step=<methods>`, such as `?second-step=totp`, the two-factor cookie and no session, and the sign-in page asks for the step there. <gap>A sign-in through the [GoTrue-compatible](#supabase-js-and-supabasessr) provider route cannot take the second step, because the GoTrue-compatible endpoints do not offer one; a person who turned it on is sent back with `error=access_denied`, as a password sign-in there answers `insufficient_aal`.</gap>
403
403
 
404
404
  ## Recent strong sign-in
405
405
 
@@ -460,7 +460,7 @@ The server stores the policy in the `sign_in_policy` table, one row per save (th
460
460
  - **Required:** someone who signs in without it is sent to set it up first. The server holds back API tokens until then (`GET /api/auth/token` answers `403`, `SIGN_IN_SETUP_REQUIRED`), and refuses to turn two-factor authentication off or to remove the last passkey.
461
461
  - Signed-in people keep their session after a change; a newly required method is asked for at their next token refresh, within 15 minutes.
462
462
  - **Staff sign-in as a person** shows only with an [operator provider](#operator-provider). Off refuses [staff sign-in](#staff-sign-in) (`403`, `SIGN_IN_METHOD_FORBIDDEN`); Email the person mails the person each time, and needs mail: without it the server refuses to save it, and a saved one turns staff sign-in off until mail is back.
463
- - **Sign in with ... through the platform** shows only with a [platform sign-in provider](#platform-sign-in-provider). Off refuses starting, finishing and connecting it, and its [token sign-in](#token-sign-in) (`403`, `SIGN_IN_METHOD_FORBIDDEN`), and the sign-in page leaves it out. It applies as Off while passkeys or two-factor authentication are Required: a provider's sign-in skips the app's second step, and the provider's own cannot be checked.
463
+ - **Sign in with ... through the platform** shows only with a [platform sign-in provider](#platform-sign-in-provider). Off refuses starting, finishing and connecting it, and its [token sign-in](#token-sign-in) (`403`, `SIGN_IN_METHOD_FORBIDDEN`), and the sign-in page leaves it out. It applies as Off while passkeys are Required, as it signs in without one. While two-factor authentication is Required it stays on: the [second step](#two-factor-authentication) follows it, and someone who has none yet sets it up first.
464
464
 
465
465
  The server refuses a policy (`400`, `SIGN_IN_POLICY_REFUSED`, with the reason) that would lock people out: passwords and emailed codes both off (someone without a passkey could not sign in), passwords off without mail, two-factor authentication required with passwords off (turning it on asks for the password), or a policy the saving admin could not sign in with. Emailed codes need mail: without `PROTOBASE_SMTP_URL` they are off whatever the policy says, and so that a policy saved with mail cannot lock everyone out once mail goes away, password sign-in is then on as well.
466
466
 
@@ -614,7 +614,7 @@ The client posts `POST /api/auth/sign-in/social` with `{ "provider": "<provider
614
614
  - **Once:** each token signs in once. Its `jti` is kept in the `verification` table until it expires, with no migration, and a second use answers `401 TOKEN_USED`.
615
615
  - **Who it signs in:** as through the provider's pages, the account linked to the provider's `sub`, else the account with the address the provider vouches for (`email_verified`), which it links. Nobody is signed up (`401`), and a banned person is refused.
616
616
  - **Never recent:** the client can mint a fresh session at will, so a session a token began never counts as [recently signed in](#confirming-an-account-change). Adding a passkey, unlinking a provider, making a personal access token or deleting the account asks it to confirm it's them in place first, and it is never a [strong sign-in](#recent-strong-sign-in) until it confirms it's them.
617
- - **The policy:** **Sign in with ... through the platform** in the [sign-in policy](#sign-in-policy) covers it, so Off refuses it, and so do passkeys or two-factor authentication being Required. Linking a provider with a token stays refused (`403 TOKEN_SIGN_IN_OFF`).
617
+ - **The policy:** **Sign in with ... through the platform** in the [sign-in policy](#sign-in-policy) covers it, so Off refuses it, and so do passkeys being Required. Linking a provider with a token stays refused (`403 TOKEN_SIGN_IN_OFF`).
618
618
  - **Rate limit:** `/api/auth/sign-in/social` takes `signInPerMinute` requests a minute per client, default 5, as a password sign-in does.
619
619
  - **Signing out:** signing out at the provider ends no session in the app, as with the provider's pages; the app's own sign-out, an admin, a ban or a deletion does.
620
620