@eaccess/auth 0.1.10 → 0.1.11
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 +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1118,6 +1118,7 @@ declare class AuthManager implements AuthManager$1 {
|
|
|
1118
1118
|
email?: string;
|
|
1119
1119
|
userId?: string;
|
|
1120
1120
|
}, expiresAfter?: string | number | null, callback?: TokenCallback): Promise<void>;
|
|
1121
|
+
userExistsByEmail(email: string): Promise<boolean>;
|
|
1121
1122
|
forceLogoutForUserBy(identifier: {
|
|
1122
1123
|
accountId?: number;
|
|
1123
1124
|
email?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1118,6 +1118,7 @@ declare class AuthManager implements AuthManager$1 {
|
|
|
1118
1118
|
email?: string;
|
|
1119
1119
|
userId?: string;
|
|
1120
1120
|
}, expiresAfter?: string | number | null, callback?: TokenCallback): Promise<void>;
|
|
1121
|
+
userExistsByEmail(email: string): Promise<boolean>;
|
|
1121
1122
|
forceLogoutForUserBy(identifier: {
|
|
1122
1123
|
accountId?: number;
|
|
1123
1124
|
email?: string;
|
package/dist/index.js
CHANGED
|
@@ -2351,6 +2351,9 @@ var AuthManager = class {
|
|
|
2351
2351
|
async initiatePasswordResetForUserBy(identifier, expiresAfter, callback) {
|
|
2352
2352
|
return initiatePasswordResetForUserBy(this.config, identifier, expiresAfter, callback);
|
|
2353
2353
|
}
|
|
2354
|
+
async userExistsByEmail(email) {
|
|
2355
|
+
return userExistsByEmail(this.config, email);
|
|
2356
|
+
}
|
|
2354
2357
|
async forceLogoutForUserBy(identifier) {
|
|
2355
2358
|
const result = await forceLogoutForUserBy(this.config, identifier);
|
|
2356
2359
|
if (this.getId() === result.accountId) {
|