prongs
GitHub

auth.invalid

A wrong credential: a bad API token, webhook signature or preview secret

Profile

Raised with

Status

401

Message

generic
Read https://www.prongs.dev/docs/intents/auth/invalid.md and tell me whether auth.invalid fits what I am building.

Example

TS
return fail('auth.invalid', 'Preview secret did not match.');
The caller gets
Terminal
HTTP 401

{
"ok": false,
"error": "Invalid credentials.",
"code": "auth.invalid"
}
And it writes security.token
TS
{
"intent": "security.token",
"level": "warn",
"alert": false,
"message": "Preview secret did not match.",
"data": {
"intent": "auth.invalid"
},
"time": "2026-10-09T12:00:00.000Z"
}

Connections

Choosing between neighbours

  • If it is

    Use

  • A wrong credential: a bad API token, webhook signature or preview secret

    auth.invalid
  • A wrong email or password at sign-in

    auth.signin
  • A bad API token, webhook signature or preview secret

    rather than auth.signin
    auth.invalid

For registry authors

Starter intents. These are the intents prongs add errors puts in your registry, raised with fail(). Change the messages to suit your app, and the statuses through the status.* intents they are built from.

The entry prongs add errors writes into your registry. Change the message here, or the status through its status.* ref.

TS
'auth.invalid': {
kind: 'semantic',
description: 'A wrong credential: a bad API token, webhook signature or preview secret',
refs: ['status.unauthorized'],
binding: {
publicMessage: 'Invalid credentials.',
expose: 'generic',
logs: 'security.token',
},
notFor: [
{
context: 'a wrong email or password at sign-in',
instead: 'auth.signin',
},
],
},