Rocky_Mountain_Vending/.pnpm-store/v10/files/08/9976e027ba090fe3a86fc2e284ec1f238a15069c1189a4bd56f985767ca05e99ad5b6b0720f0ac07a2630a62df5970c68ea56a60be1ed828beb608a164fdaf
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

7 lines
381 B
Text

import { TokenProviderError } from "@smithy/property-provider";
import { REFRESH_MESSAGE } from "./constants";
export const validateTokenKey = (key, value, forRefresh = false) => {
if (typeof value === "undefined") {
throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
}
};