@eaccess/auth 0.1.10 → 0.1.12
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 +2 -0
- package/dist/index.d.ts +2 -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
|
@@ -328,6 +328,7 @@ interface AuthManager$1 {
|
|
|
328
328
|
email?: string;
|
|
329
329
|
userId?: string;
|
|
330
330
|
}, expiresAfter?: string | number | null, callback?: TokenCallback): Promise<void>;
|
|
331
|
+
userExistsByEmail(email: string): Promise<boolean>;
|
|
331
332
|
forceLogoutForUserBy(identifier: {
|
|
332
333
|
accountId?: number;
|
|
333
334
|
email?: string;
|
|
@@ -1118,6 +1119,7 @@ declare class AuthManager implements AuthManager$1 {
|
|
|
1118
1119
|
email?: string;
|
|
1119
1120
|
userId?: string;
|
|
1120
1121
|
}, expiresAfter?: string | number | null, callback?: TokenCallback): Promise<void>;
|
|
1122
|
+
userExistsByEmail(email: string): Promise<boolean>;
|
|
1121
1123
|
forceLogoutForUserBy(identifier: {
|
|
1122
1124
|
accountId?: number;
|
|
1123
1125
|
email?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -328,6 +328,7 @@ interface AuthManager$1 {
|
|
|
328
328
|
email?: string;
|
|
329
329
|
userId?: string;
|
|
330
330
|
}, expiresAfter?: string | number | null, callback?: TokenCallback): Promise<void>;
|
|
331
|
+
userExistsByEmail(email: string): Promise<boolean>;
|
|
331
332
|
forceLogoutForUserBy(identifier: {
|
|
332
333
|
accountId?: number;
|
|
333
334
|
email?: string;
|
|
@@ -1118,6 +1119,7 @@ declare class AuthManager implements AuthManager$1 {
|
|
|
1118
1119
|
email?: string;
|
|
1119
1120
|
userId?: string;
|
|
1120
1121
|
}, expiresAfter?: string | number | null, callback?: TokenCallback): Promise<void>;
|
|
1122
|
+
userExistsByEmail(email: string): Promise<boolean>;
|
|
1121
1123
|
forceLogoutForUserBy(identifier: {
|
|
1122
1124
|
accountId?: number;
|
|
1123
1125
|
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) {
|