Skip to content

Commit 5cfc7df

Browse files
committed
rename headers from plain
1 parent fb4cd3f commit 5cfc7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/routes/api.v1.plain.customer-cards.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const PlainCustomerCardRequestSchema = z.object({
2323

2424
// Authenticate the request from Plain
2525
function authenticatePlainRequest(request: Request): boolean {
26-
const authHeader = request.headers.get("PLAIN_AUTH");
26+
const authHeader = request.headers.get("Authorization");
2727
const expectedSecret = env.PLAIN_CUSTOMER_CARDS_SECRET;
2828
if (!expectedSecret) {
2929
logger.warn("PLAIN_CUSTOMER_CARDS_SECRET not configured");

0 commit comments

Comments
 (0)