Rocky_Mountain_Vending/.pnpm-store/v10/files/a1/68d076aaf079807164e929a8a02ddbd3065533c5295e2ee3aa97a4d1fa10ea87019a2ed7ccd91603f5d57b328c8d34a3f20f21c7f8b9a15ec913303ffbc7e4
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

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);