Skip to main content

mockCredentials.none

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

Utilities related to none credentials.

Signature:

namespace none 

Functions

FunctionDescription
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.