feat(console): advanced passwordless api (#2183)

* feat: console add passwordless

* fix: token name

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Max Peintner
2021-08-13 07:05:05 +00:00
committed by GitHub
co-authored by Livio Amstutz
parent 999ac8d508
commit cdfdc69341
15 changed files with 491 additions and 173 deletions
+8
View File
@@ -309,6 +309,8 @@ import {
ResetPrivacyPolicyToDefaultRequest,
ResetPrivacyPolicyToDefaultResponse,
SendHumanResetPasswordNotificationRequest,
SendPasswordlessRegistrationRequest,
SendPasswordlessRegistrationResponse,
SetCustomDomainClaimedMessageTextRequest,
SetCustomDomainClaimedMessageTextResponse,
SetCustomInitMessageTextRequest,
@@ -598,6 +600,12 @@ export class ManagementService {
return this.grpcService.mgmt.removeHumanPasswordless(req, null).then(resp => resp.toObject());
}
public sendPasswordlessRegistration(userId: string): Promise<SendPasswordlessRegistrationResponse.AsObject> {
const req = new SendPasswordlessRegistrationRequest();
req.setUserId(userId);
return this.grpcService.mgmt.sendPasswordlessRegistration(req, null).then(resp => resp.toObject());
}
public listLoginPolicyMultiFactors(): Promise<ListLoginPolicyMultiFactorsResponse.AsObject> {
const req = new ListLoginPolicyMultiFactorsRequest();
return this.grpcService.mgmt.listLoginPolicyMultiFactors(req, null).then(resp => resp.toObject());