TOTP Verifier
Generate two-factor authentication QR codes and verify dynamic passwords
OTP QR Code Generation & Verification
Generating QR code...
Verification
Current Token:530624
Remaining Time:14 seconds
Instructions
Features:
- Generate TOTP QR codes compliant with RFC 6238
- Supports Google Authenticator, Microsoft Authenticator, and more
- Verify OTP tokens online
- Token auto-refreshes every 30 seconds
How to Use:
- Scan the QR code with your mobile authenticator app
- Or manually copy and add the secret to your authenticator
- Enter the 6-digit code shown in your authenticator
- Click "Verify" to check if the code is correct
Code Example
Using the QRCodeOTP component in other pages is simple:
<template>
<QRCodeOTP
id="user-123"
hash="unique-hash-value"
@verified="handleVerified"
@failed="handleFailed"
/>
</template>
<script setup>
// Handle verification success
const handleVerified = (data) => {
console.log('Verification succeeded:', data)
// data.delta - time offset
// data.token - verified token
}
// Handle verification failure
const handleFailed = (error) => {
console.log('Verification failed:', error)
// error.reason - failure reason
}
</script>Parameters:
id(required): unique identifier for distinguishing different OTP configurationshash(optional): hash value used to generate a unique secret seed
Events:
{'@'}verified: triggered on successful verification, returns verification result data{'@'}failed: triggered on verification failure, returns error info
Related tools
More from the same category · Design Tools
Color Palette GeneratorGenerate palettes in one click and copy the hex values into your design.Color Format ConverterConvert HEX, RGB, HSL, CMYK and HSV live with one synced picker.QR Code GeneratorMake QR codes with your logo and colors, then export vector SVG.QR Code DecoderScan a QR from an image or camera and copy its link or text.Barcode GeneratorCreate Code128, EAN, UPC and more barcodes as vector files.Barcode DecoderRead the value of a 1D barcode image for fast stock checks.