Skip to main content
Version: Next

mockCredentials.none.header()

Home > @backstage/backend-test-utils > mockCredentials > none > header

Returns an authorization header that translates to unauthenticated credentials.

This is useful when one wants to explicitly test unauthenticated requests while still using the default behavior of the mock HttpAuthService where it defaults to user credentials.

Signature:

function header(): string;

Returns:

string