mockCredentials.limitedUser.token()
Home > @backstage/backend-test-utils
> mockCredentials
> limitedUser
> token
Creates a mocked limited user token. If a payload is provided it will be encoded into the token and forwarded to the credentials object when authenticated by the mock auth service.
Signature:
function token(userEntityRef?: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
userEntityRef | string | (Optional) |
Returns:
string