{"version":"2.1.257","anchor":"bash-hooks-fetch-gains-session-scoped-auth-handles","canonical_anchor":"bash-hooks-fetch-gains-session-scoped-auth-handles","heading":"Bash hooks fetch() gains session-scoped auth handles","tier":"use","area":"Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.257\/e\/bash-hooks-fetch-gains-session-scoped-auth-handles","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.257","markdown":"### Bash hooks fetch() gains session-scoped auth handles\n\nHook fetches can take an auth handle from $.session.authorize(), whose headers apply only to the matching host.\n\nThe plugin hooks `fetch` event now supports an `auth` option resolved via `$.session.authorize()`, which mints an opaque handle. When the fetch's target host matches the authorized handle's host, the handle's headers are merged into the outgoing request; they're dropped again if a redirect crosses to a different host.\n\n- Area: Hooks\n- Names: `auth`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 4\/5"}