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
Parameter |
Type |
Description |
---|---|---|
options |
(Optional) |
string