@maxal_studio/kratosjs-plugin-profile
v3.0.0
Published
User profile page (edit details + change password) for KratosJs panels
Readme
@maxal_studio/kratosjs-plugin-profile
Adds a Profile page to a KratosJs admin panel where the logged-in user can edit their own details (name, email, phone, avatar) and change their password. Works on both MongoDB and SQL.


Install
npm install @maxal_studio/kratosjs-plugin-profileRegister
Server (src/index.ts):
import { ProfilePlugin } from "@maxal_studio/kratosjs-plugin-profile";
Panel.make("admin")
// ...
.plugins([new ProfilePlugin()]); // uses the 'User' entity by defaultIf your user entity isn't named User:
new ProfilePlugin({ userEntity: "Account" });Client (src/admin/main.tsx):
import profile from "@maxal_studio/kratosjs-plugin-profile/client";
mountAdminPanel({ plugins: [profile] });