This plugin gives you access to all authentication features. It can be used in another plugin to authorize your routes, but it also provides routes for login and registration. Using Authentication Here is how you can require authentication on a route. Install the plugin:yarn add cl_auth –registry http://localhost:4873or if you are using NPMnpm i cl_auth […]
Articles Tagged: CRM2.0
CRM Plugins
Plugins are a way to add new features and modify existing functionality without changing the main codebase. Create a new Plugin Plugin List BEFORE CREATING A PLUGIN, YOU MUST ASK PERMISSION FROM YOUR TEAM LEAD! Core Plugins These plugins provide core functionality to other plugins. Standalone Plugins These plugins provide full-stack functionality on their own. […]
Database Plugin (cl_db)
Database plugin is used to get access to the CRM’s database. It exports a function called getDb. You can call the function to get a connection o database. ID: cl_db Exports getDb(): () -> PrismaClient Example Usage Install the plugin Or if you are using npm Import it wherever you need it: faheem