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>
12 lines
541 B
Text
12 lines
541 B
Text
import { setCredentialFeature } from "@aws-sdk/core/client";
|
|
import { fromLoginCredentials } from "@aws-sdk/credential-provider-login";
|
|
export const isLoginProfile = (data) => {
|
|
return Boolean(data && data.login_session);
|
|
};
|
|
export const resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
const credentials = await fromLoginCredentials({
|
|
...options,
|
|
profile: profileName,
|
|
})({ callerClientConfig });
|
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
};
|