Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The OTPCredential
interface of the WebOTP API is returned when a WebOTP navigator.credentials.get()
call (i.e. invoked with an otp
option) fulfills. It includes a code
property that contains the retrieved one-time password (OTP).