Skip to content

Commit 342c757

Browse files
committed
remove userId
1 parent 96f2027 commit 342c757

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/client/src/AccountsClient.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,17 @@ export class AccountsClient {
243243
}
244244
}
245245

246-
async requestPasswordReset(userId: string, email?: string): Promise<void> {
246+
async requestPasswordReset(email?: string): Promise<void> {
247247
try {
248-
await this.transport.sendResetPasswordEmail(userId, email);
248+
await this.transport.sendResetPasswordEmail(email);
249249
} catch (err) {
250250
throw new AccountsError(err.message);
251251
}
252252
}
253253

254-
async requestVerificationEmail(userId: string, email?: string): Promise<void> {
254+
async requestVerificationEmail(email?: string): Promise<void> {
255255
try {
256-
await this.transport.sendVerificationEmail(userId, email);
256+
await this.transport.sendVerificationEmail(email);
257257
} catch (err) {
258258
throw new AccountsError(err.message);
259259
}
@@ -307,11 +307,11 @@ const Accounts = {
307307
resetPassword(token: string, newPassword: string): Promise<void> {
308308
return this.instance.resetPassword(token, newPassword);
309309
},
310-
requestPasswordReset(userId: string, email?: string): Promise<void> {
311-
return this.instance.requestPasswordReset(userId, email);
310+
requestPasswordReset(email?: string): Promise<void> {
311+
return this.instance.requestPasswordReset(email);
312312
},
313-
requestVerificationEmail(userId: string, email?: string): Promise<void> {
314-
return this.instance.requestVerificationEmail(userId, email);
313+
requestVerificationEmail(email?: string): Promise<void> {
314+
return this.instance.requestVerificationEmail(email);
315315
},
316316
};
317317

0 commit comments

Comments
 (0)