STRIPE_WEBHOOK_INVALID_SIG
Invalid webhook signature.
HTTP status: 400
Why this happens
An incoming Stripe webhook signature didn't validate.
How to recover
Verify your Stripe webhook signing secret matches the one Stripe is signing with.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "STRIPE_WEBHOOK_INVALID_SIG") {
// recover here
}
throw e;
}