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>
9 lines
408 B
Text
9 lines
408 B
Text
import { getConfigFilepath } from "./getConfigFilepath";
|
|
import { getSsoSessionData } from "./getSsoSessionData";
|
|
import { parseIni } from "./parseIni";
|
|
import { readFile } from "./readFile";
|
|
const swallowError = () => ({});
|
|
export const loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath())
|
|
.then(parseIni)
|
|
.then(getSsoSessionData)
|
|
.catch(swallowError);
|