native-browser-otp
Version:
Lightweight library for generating TOTP and HOTP codes using browser's native Web Cryptography API. Perfect for implementing two-factor authentication (2FA) in web applications.
69 lines (68 loc) • 1.86 kB
JSON
{
"name": "native-browser-otp",
"version": "1.1.1",
"description": "Lightweight library for generating TOTP and HOTP codes using browser's native Web Cryptography API. Perfect for implementing two-factor authentication (2FA) in web applications.",
"files": [
"dist",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "https://github.com/g12i/native-browser-otp"
},
"homepage": "https://g12i.github.io/native-browser-otp/",
"main": "./dist/native-browser-otp.umd.js",
"module": "./dist/native-browser-otp.es.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/native-browser-otp.es.js",
"require": "./dist/native-browser-otp.umd.js",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"dev": "vite --config vite.demo.config.js",
"build:demo": "vite build --config vite.demo.config.js && gh-pages -d demo/dist",
"build": "vite build && tsc --emitDeclarationOnly"
},
"keywords": [
"totp",
"hotp",
"2fa",
"two-factor",
"authentication",
"security",
"cryptography",
"web-crypto",
"browser",
"native",
"lightweight",
"otp",
"one-time-password",
"2fa-authentication",
"web-security",
"browser-security"
],
"author": "Wojciech Grzebieniowski <grzebieniowski@gmail.com>",
"license": "ISC",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"evergreen-ui": "^6.12.0",
"gh-pages": "^3.2.3",
"prettier": "^2.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-qr-code": "^2.0.8",
"react-use": "^17.6.0",
"typescript": "^4.4.2",
"vite": "^2.5.6"
},
"dependencies": {
"base32-decode": "^1.0.0"
}
}