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>
13 lines
524 B
Text
13 lines
524 B
Text
export const isImdsCredentials = (arg) => Boolean(arg) &&
|
|
typeof arg === "object" &&
|
|
typeof arg.AccessKeyId === "string" &&
|
|
typeof arg.SecretAccessKey === "string" &&
|
|
typeof arg.Token === "string" &&
|
|
typeof arg.Expiration === "string";
|
|
export const fromImdsCredentials = (creds) => ({
|
|
accessKeyId: creds.AccessKeyId,
|
|
secretAccessKey: creds.SecretAccessKey,
|
|
sessionToken: creds.Token,
|
|
expiration: new Date(creds.Expiration),
|
|
...(creds.AccountId && { accountId: creds.AccountId }),
|
|
});
|