@antibusy/mercur-strapi-loyalty
v0.1.3
Published
Partner-scoped Strapi loyalty management for Mercur admin and vendor dashboards.
Maintainers
Readme
Mercur Strapi Loyalty
Partner-scoped Strapi Loyalty management for Mercur admin and vendor dashboards.
The plugin is project-neutral. It uses @his-her/connect internally as its
Strapi transport client, but it does not read His & Her-specific environment
variables.
Configuration
Pass connection values through the Medusa plugin options:
{
resolve: "@xbstracts/mercur-strapi-loyalty",
options: {
strapi_url: process.env.STRAPI_LOYALTY_URL,
strapi_api_token: process.env.STRAPI_LOYALTY_API_TOKEN,
auth_mode: process.env.STRAPI_LOYALTY_AUTH_MODE || "api-token",
service_account_username:
process.env.STRAPI_LOYALTY_SERVICE_ACCOUNT_USERNAME,
service_account_email: process.env.STRAPI_LOYALTY_SERVICE_ACCOUNT_EMAIL,
service_account_password:
process.env.STRAPI_LOYALTY_SERVICE_ACCOUNT_PASSWORD,
},
}For API-token authentication, configure:
STRAPI_LOYALTY_URL=http://localhost:1337
STRAPI_LOYALTY_API_TOKEN=
STRAPI_LOYALTY_AUTH_MODE=api-tokenFor Users & Permissions service-JWT authentication, set auth_mode to
service-jwt and provide the generic service-account username or email and
password options instead.
Credentials remain server-side. Browser routes never receive the Strapi token or service-account password.
