irby / passwordless-authenticator-poc

Detected the use of alert, confirm and prompt JS-0052
Anti-pattern
Minor
a year agoa year old
33  }
34
35  public async initiateLogin(relationId: string) {
36    const confirmation = confirm("Please provide a biometric");37    if (!confirmation) return;
38
39    const request: UserGuestRelationRequest = {
197  }
198
199  private handleInitializeGrantConfirmation(): void {
200    if (confirm("Provide your biometric to continue")) {201      this.socket?.send(`${MessageCode.FinalizeGrantConfirm}`);
202    } else {
203      this.socket?.send(`${MessageCode.CancelGrantConfirm}`);