Skip to main content
Version: Next

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

TokenOptions

(Optional)

**Returns:**

string