kucherenko / strapi-plugin-passwordless

A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.
MIT License
77 stars 27 forks source link

Enhancement: Debug mode #16

Open LuisRodriguezLD opened 1 year ago

LuisRodriguezLD commented 1 year ago

In order to facilitate development, I suggest we add a debugMode: boolean in the settings page. If it's on, GET /api/passwordless/login?loginToken={tokenFromEmail} will never set is_active to false.

This allows the dev to use the same token multiple times without the need to generate a new one. Another option would be to use NODE_ENV === 'development'

I'm happy to work on this if you think it fits your vision