Skip to main content
Version: Next

mockCredentials.service.token()

Home > @backstage/backend-test-utils > mockCredentials > service > token

Creates 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 token(options?: TokenOptions): string;

Parameters

ParameterTypeDescription
optionsTokenOptions(Optional)

Returns:

string