mockCredentials.service.header()
Home > @backstage/backend-test-utils
> mockCredentials
> service
> header
Returns an authorization header with a mocked service token. The provided options will be encoded into the token and forwarded to the credentials object when authenticated by the mock auth service.
Signature:
function header(options?: TokenOptions): string;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
(Optional) |
string