testing/cross_backend/narrowed_api_token.ts view source
(options: MintNarrowedApiTokenOptions): Promise<string> import {mint_narrowed_api_token} from '@fuzdev/fuz_app/testing/cross_backend/narrowed_api_token.js'; Mint a narrowed api token and return its raw bearer value.
options
returns
Promise<string>
the raw token, for an Authorization: Bearer header
throws
Error- when the mint is refused, naming the status and error