@palbase/backend 38.0.3 → 38.0.4

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/docs/auth.md CHANGED
@@ -56,13 +56,17 @@ mid-session keeps reporting `false` until their next token. `roles` is the
56
56
  exception, and deliberately so — it is read from the table on every request, so
57
57
  a grant or a revocation lands immediately.
58
58
 
59
- **"Their next token" arrives on its own.** A refresh re-reads the row when it
60
- mints, so the rotated token carries the verification that just happened — and
61
- the client SDKs spend that refresh for you: they rotate when `refreshUser()`
62
- sees the flag flip, and a `403 email_not_verified` earns one renew-and-replay
63
- the way a 401 does. Nobody has to sign out and back in. If you are holding a
64
- token yourself a server-to-server caller, a scriptcall `POST /auth/refresh`
65
- and use what comes back.
59
+ **"Their next token" is a refresh away not a sign-in.** `POST
60
+ /auth/token/refresh` re-reads the row when it mints, so the rotated token
61
+ carries the verification that just happened. Signing out and back in is never
62
+ the remedy.
63
+
64
+ The mobile SDKs spend that refresh for youiOS from Palbe 0.57.0, Android
65
+ from 2.1.0. Both rotate when `refreshUser()` sees the flag flip, and both give
66
+ a `403 email_not_verified` one renew-and-replay, the way a 401 already gets
67
+ one. On any other caller — a web client, a script, a server-to-server
68
+ integration — do it yourself: call `POST /auth/token/refresh` with the refresh
69
+ token and use the pair that comes back.
66
70
 
67
71
  ## Roles and permissions
68
72
 
@@ -832,13 +832,17 @@ mid-session keeps reporting `false` until their next token. `roles` is the
832
832
  exception, and deliberately so — it is read from the table on every request, so
833
833
  a grant or a revocation lands immediately.
834
834
 
835
- **"Their next token" arrives on its own.** A refresh re-reads the row when it
836
- mints, so the rotated token carries the verification that just happened — and
837
- the client SDKs spend that refresh for you: they rotate when `refreshUser()`
838
- sees the flag flip, and a `403 email_not_verified` earns one renew-and-replay
839
- the way a 401 does. Nobody has to sign out and back in. If you are holding a
840
- token yourself a server-to-server caller, a scriptcall `POST /auth/refresh`
841
- and use what comes back.
835
+ **"Their next token" is a refresh away not a sign-in.** `POST
836
+ /auth/token/refresh` re-reads the row when it mints, so the rotated token
837
+ carries the verification that just happened. Signing out and back in is never
838
+ the remedy.
839
+
840
+ The mobile SDKs spend that refresh for youiOS from Palbe 0.57.0, Android
841
+ from 2.1.0. Both rotate when `refreshUser()` sees the flag flip, and both give
842
+ a `403 email_not_verified` one renew-and-replay, the way a 401 already gets
843
+ one. On any other caller — a web client, a script, a server-to-server
844
+ integration — do it yourself: call `POST /auth/token/refresh` with the refresh
845
+ token and use the pair that comes back.
842
846
 
843
847
  ## Roles and permissions
844
848
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palbase/backend",
3
- "version": "38.0.3",
3
+ "version": "38.0.4",
4
4
  "description": "Palbase Backend SDK — class controllers (@Controller/@Get/@Post + @Body/@QueryParams/@Param), error classes, schema DSL",
5
5
  "license": "MIT",
6
6
  "repository": {