Rocky_Mountain_Vending/.pnpm-store/v10/files/44/81f9cf2a70facc44832918e6eabcf320acc8d72fc1b59c3f542fcfc663fdd9a2645c12da82e36262c5331f6f9595bfd6cd4c6ac7a03e185eeb9e7b9f9ecbea
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

11 lines
472 B
Text

import { HttpRequest } from "@smithy/protocol-http";
export class HttpBearerAuthSigner {
async sign(httpRequest, identity, signingProperties) {
const clonedRequest = HttpRequest.clone(httpRequest);
if (!identity.token) {
throw new Error("request could not be signed with `token` since the `token` is not defined");
}
clonedRequest.headers["Authorization"] = `Bearer ${identity.token}`;
return clonedRequest;
}
}