(req: Request)
| 1572 | // auth check sees the same token the routes receive. Module-level |
| 1573 | // validateAuth was deleted in v1.35.0.0. |
| 1574 | function validateAuth(req: Request): boolean { |
| 1575 | const header = req.headers.get('authorization'); |
| 1576 | return header === `Bearer ${authToken}`; |
| 1577 | } |
| 1578 | |
| 1579 | // Factory-scoped shutdown. Closes the cfg-provided browserManager so |
| 1580 | // embedders that pass their own BrowserManager get correct teardown. |