Commit dbec813
fix(e2e): gate token assertion behind sessionMinter feature flag
Why:
The resiliency e2e test asserts that `token=` is present in the /tokens
POST body, but this param is only sent when sessionMinter is enabled in
the instance's auth config. CI instances without the flag fail deterministically.
What changed:
Read sessionMinter from the Clerk environment at runtime and make the
assertion bi-directional: assert token is present when enabled, absent
when disabled. Uses URLSearchParams for proper form-body parsing.1 parent 9454c4d commit dbec813
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
554 | 557 | | |
555 | | - | |
556 | | - | |
| 558 | + | |
| 559 | + | |
557 | 560 | | |
558 | 561 | | |
559 | 562 | | |
| |||
0 commit comments