/opt/canhelp/node_modules/better-auth/dist/plugins/admin
NameSizeModeActions
access/-0755rm
admin.d.mts292520644editdlrm
admin.mjs37090644editdlrm
admin.mjs.map77380644editdlrm
client.d.mts50380644editdlrm
client.mjs8270644editdlrm
client.mjs.map28730644editdlrm
error-codes.d.mts27230644editdlrm
error-codes.mjs17420644editdlrm
error-codes.mjs.map21820644editdlrm
has-permission.mjs6280644editdlrm
has-permission.mjs.map13170644editdlrm
index.d.mts2480644editdlrm
index.mjs550644editdlrm
routes.mjs312090644editdlrm
routes.mjs.map663550644editdlrm
schema.d.mts7490644editdlrm
schema.mjs5490644editdlrm
schema.mjs.map12390644editdlrm
types.d.mts25370644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/plugins/admin/error-codes.mjs (1742B)
import { defineErrorCodes } from "@better-auth/core/utils/error-codes"; //#region src/plugins/admin/error-codes.ts const ADMIN_ERROR_CODES = defineErrorCodes({ FAILED_TO_CREATE_USER: "Failed to create user", USER_ALREADY_EXISTS: "User already exists.", USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.", YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself", YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role", YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users", YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users", YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions", YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users", YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users", YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions", YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users", YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password", BANNED_USER: "You have been banned from this application", YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user", NO_DATA_TO_UPDATE: "No data to update", YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users", YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself", YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value", YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins", INVALID_ROLE_TYPE: "Invalid role type" }); //#endregion export { ADMIN_ERROR_CODES }; //# sourceMappingURL=error-codes.mjs.map