New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

web-otp-angular

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-otp-angular

Angular library to automatically detect OTP from mobile device (Both mobile web site and Desktop)

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

web-otp-angular

Angular library to automatically detect OTP from mobile device (Both mobile web site and Desktop)

Installation

npm i web-otp-angular

Add WebOtpAngularModule to imports in your app.module.ts file.

Usage

Just add directive appWebOtp in your <input> tag where you want to autofill the otp value.

<div>
    <h2>Example of code</h2>
    <input appWebOtp  type="number" placeholder="Your OTP" />
<div>

Optional

add [timeout] property to abort listening for the OTP (in milliseconds)

Below example will stop listening to the otp after 5 seconds.

   <input appWebOtp [timeout]="5000" type="number" placeholder="Your OTP" />

OTP SMS Format

You must use following SMS format to detect the OTP.

Your OTP is: 123456.

@www.yourwebsite.com #123456

Checkout more on https://web.dev/web-otp/

Keywords

web-otp

FAQs

Package last updated on 02 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts