Rocky_Mountain_Vending/.pnpm-store/v10/files/31/5b3e9c746be1adb9a00d449b3eb675f9a04328990369a8f50a89fa1a669c42b3ce45504b2e5b59cd02fca4235cd0604dd17eec2915d0e7a3a4e9f716d3bff9
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

16 lines
853 B
Text

import { setTokenFeature } from "@aws-sdk/core/client";
import { getBearerTokenEnvKey } from "@aws-sdk/core/httpAuthSchemes";
import { TokenProviderError } from "@smithy/property-provider";
export const fromEnvSigningName = ({ logger, signingName } = {}) => async () => {
logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
if (!signingName) {
throw new TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger });
}
const bearerTokenKey = getBearerTokenEnvKey(signingName);
if (!(bearerTokenKey in process.env)) {
throw new TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger });
}
const token = { token: process.env[bearerTokenKey] };
setTokenFeature(token, "BEARER_SERVICE_ENV_VARS", "3");
return token;
};