Commit cbc83a0
committed
feat(clerk-js): Send previous session token on /tokens requests
Send the current session JWT as `token` in the POST body when
requesting a token refresh. This lets the FAPI Proxy forward it to
Session Minter for claim cloning without a DB read.
Uses conditional spread so the key is absent (not `token=`) when
there's no previous token (first mint).1 parent 07164c8 commit cbc83a0
File tree
2 files changed
+11
-1
lines changed- .changeset
- packages/clerk-js/src/core/resources
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
484 | 489 | | |
485 | 490 | | |
486 | 491 | | |
| |||
0 commit comments