@eaccess/auth 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +25 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -64,17 +64,29 @@ __export(index_exports, {
|
|
|
64
64
|
UserInactiveError: () => UserInactiveError,
|
|
65
65
|
UserNotFoundError: () => UserNotFoundError,
|
|
66
66
|
UserNotLoggedInError: () => UserNotLoggedInError,
|
|
67
|
+
addRoleForUserBy: () => addRoleForUserBy,
|
|
67
68
|
addRoleToUser: () => addRoleToUser,
|
|
68
69
|
authFunctions: () => auth_functions_exports,
|
|
70
|
+
changePasswordForUserBy: () => changePasswordForUserBy,
|
|
69
71
|
cleanupExpiredTokens: () => cleanupExpiredTokens,
|
|
72
|
+
confirmResetPassword: () => confirmResetPassword,
|
|
70
73
|
createAuthContext: () => createAuthContext,
|
|
71
74
|
createAuthMiddleware: () => createAuthMiddleware,
|
|
72
75
|
createAuthTables: () => createAuthTables,
|
|
76
|
+
createUser: () => createUser,
|
|
77
|
+
deleteUserBy: () => deleteUserBy,
|
|
73
78
|
dropAuthTables: () => dropAuthTables,
|
|
79
|
+
forceLogoutForUserBy: () => forceLogoutForUserBy,
|
|
74
80
|
getAuthTableStats: () => getAuthTableStats,
|
|
75
81
|
getUserRoles: () => getUserRoles,
|
|
82
|
+
hasRoleForUserBy: () => hasRoleForUserBy,
|
|
83
|
+
initiatePasswordResetForUserBy: () => initiatePasswordResetForUserBy,
|
|
76
84
|
isValidEmail: () => isValidEmail,
|
|
85
|
+
register: () => register,
|
|
86
|
+
removeRoleForUserBy: () => removeRoleForUserBy,
|
|
77
87
|
removeRoleFromUser: () => removeRoleFromUser,
|
|
88
|
+
resetPassword: () => resetPassword,
|
|
89
|
+
setStatusForUserBy: () => setStatusForUserBy,
|
|
78
90
|
setUserRoles: () => setUserRoles,
|
|
79
91
|
validateEmail: () => validateEmail
|
|
80
92
|
});
|
|
@@ -2383,7 +2395,7 @@ var AuthManager = class {
|
|
|
2383
2395
|
}
|
|
2384
2396
|
return null;
|
|
2385
2397
|
}
|
|
2386
|
-
//
|
|
2398
|
+
// admin/standalone functions (delegated to auth-functions.js due to lack of need for request context)
|
|
2387
2399
|
async createUser(credentials, userId, callback) {
|
|
2388
2400
|
return createUser(this.config, credentials, userId, callback);
|
|
2389
2401
|
}
|
|
@@ -2735,17 +2747,29 @@ async function getUserRoles(config, identifier) {
|
|
|
2735
2747
|
UserInactiveError,
|
|
2736
2748
|
UserNotFoundError,
|
|
2737
2749
|
UserNotLoggedInError,
|
|
2750
|
+
addRoleForUserBy,
|
|
2738
2751
|
addRoleToUser,
|
|
2739
2752
|
authFunctions,
|
|
2753
|
+
changePasswordForUserBy,
|
|
2740
2754
|
cleanupExpiredTokens,
|
|
2755
|
+
confirmResetPassword,
|
|
2741
2756
|
createAuthContext,
|
|
2742
2757
|
createAuthMiddleware,
|
|
2743
2758
|
createAuthTables,
|
|
2759
|
+
createUser,
|
|
2760
|
+
deleteUserBy,
|
|
2744
2761
|
dropAuthTables,
|
|
2762
|
+
forceLogoutForUserBy,
|
|
2745
2763
|
getAuthTableStats,
|
|
2746
2764
|
getUserRoles,
|
|
2765
|
+
hasRoleForUserBy,
|
|
2766
|
+
initiatePasswordResetForUserBy,
|
|
2747
2767
|
isValidEmail,
|
|
2768
|
+
register,
|
|
2769
|
+
removeRoleForUserBy,
|
|
2748
2770
|
removeRoleFromUser,
|
|
2771
|
+
resetPassword,
|
|
2772
|
+
setStatusForUserBy,
|
|
2749
2773
|
setUserRoles,
|
|
2750
2774
|
validateEmail
|
|
2751
2775
|
});
|