Commit 072f8a2
committed
fix(dev): DevPlugin derives org roles from its stack too (#3723)
The fourth host that boots AuthPlugin from a loaded stack, and the last one
still walking past `additionalOrgRoles`. Unlike the pre-fix `serve` path this
was not a mismatch — passing nothing left better-auth and the selects agreeing
on the built-ins — but DevPlugin documents itself as equivalent to assembling
the full stack by hand, and that equivalence quietly excluded every
app-declared organization role.
Now uses the same `collectStackOrgRoles(this.options.stack)` as `serve` and the
verify harness. Guarded on the export being present: plugin-auth is a dynamic
optional import here, so an older copy on disk yields none rather than throwing.1 parent cb8434e commit 072f8a2
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
526 | 536 | | |
527 | 537 | | |
528 | 538 | | |
| 539 | + | |
529 | 540 | | |
530 | 541 | | |
531 | 542 | | |
| |||
0 commit comments