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>
18 lines
760 B
Text
18 lines
760 B
Text
import { serializerMiddlewareOption } from "@smithy/middleware-serde";
|
|
import { httpAuthSchemeMiddleware } from "./httpAuthSchemeMiddleware";
|
|
export const httpAuthSchemeMiddlewareOptions = {
|
|
step: "serialize",
|
|
tags: ["HTTP_AUTH_SCHEME"],
|
|
name: "httpAuthSchemeMiddleware",
|
|
override: true,
|
|
relation: "before",
|
|
toMiddleware: serializerMiddlewareOption.name,
|
|
};
|
|
export const getHttpAuthSchemePlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider, }) => ({
|
|
applyToStack: (clientStack) => {
|
|
clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
|
|
httpAuthSchemeParametersProvider,
|
|
identityProviderConfigProvider,
|
|
}), httpAuthSchemeMiddlewareOptions);
|
|
},
|
|
});
|