@@ -243,17 +243,17 @@ export class AccountsClient {
243
243
}
244
244
}
245
245
246
- async requestPasswordReset ( userId : string , email ?: string ) : Promise < void > {
246
+ async requestPasswordReset ( email ?: string ) : Promise < void > {
247
247
try {
248
- await this . transport . sendResetPasswordEmail ( userId , email ) ;
248
+ await this . transport . sendResetPasswordEmail ( email ) ;
249
249
} catch ( err ) {
250
250
throw new AccountsError ( err . message ) ;
251
251
}
252
252
}
253
253
254
- async requestVerificationEmail ( userId : string , email ? : string ) : Promise < void > {
254
+ async requestVerificationEmail ( email ? : string ) : Promise < void > {
255
255
try {
256
- await this . transport . sendVerificationEmail ( userId , email ) ;
256
+ await this . transport . sendVerificationEmail ( email ) ;
257
257
} catch ( err ) {
258
258
throw new AccountsError ( err . message ) ;
259
259
}
@@ -307,11 +307,11 @@ const Accounts = {
307
307
resetPassword ( token : string , newPassword : string ) : Promise < void > {
308
308
return this . instance . resetPassword ( token , newPassword ) ;
309
309
} ,
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 ) ;
312
312
} ,
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 ) ;
315
315
} ,
316
316
} ;
317
317
0 commit comments