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>
5 lines
430 B
Text
5 lines
430 B
Text
import { chain, memoize, TokenProviderError } from "@smithy/property-provider";
|
|
import { fromSso } from "./fromSso";
|
|
export const nodeProvider = (init = {}) => memoize(chain(fromSso(init), async () => {
|
|
throw new TokenProviderError("Could not load token from any providers", false);
|
|
}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined);
|