MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / authRequired

Method authRequired

src/lib/errors.ts:201–211  ·  view source on GitHub ↗

* Local fabrication of a missing-key error. Wording matches the server * AUTH_REQUIRED template so the user sees the same thing whether the * miss was detected before or after sending the request.

(requestId = 'local')

Source from the content-addressed store, hash-verified

199 * miss was detected before or after sending the request.
200 */
201 static authRequired(requestId = 'local'): ApiError {
202 return new ApiError({
203 code: 'AUTH_REQUIRED',
204 message: 'Authentication is required.',
205 nextAction:
206 'Run `testsprite setup` (interactive — prompts for your API key and installs the verification skill),' +
207 ' or set TESTSPRITE_API_KEY and run `testsprite setup --from-env` for non-interactive flows.',
208 requestId,
209 details: {},
210 });
211 }
212}
213
214/**

Callers 4

auth.test.tsFile · 0.80
requestWithMetaMethod · 0.80
makeHttpClientFunction · 0.80
errors.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected