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>
7 lines
381 B
Text
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);
|
|
}
|
|
};
|