UNPKG

strapi-plugin-passwordless

Version:

A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.

25 lines (20 loc) 513 B
// const path = require("node:path"); const fs = require("node:fs"); // module.exports = ({ strapi }) => { if (strapi.plugin("documentation")) { const specPath = path.join( __dirname, "../documentation/1.0.0/passwordless.yaml" ); const spec = fs.readFileSync(specPath, "utf8"); strapi .plugin("documentation") .service("override") .registerOverride(spec, { pluginOrigin: "passwordless", excludeFromGeneration: ["passwordless"], }); } };