foronce 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -9
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
<p text-align="center">
|
|
2
|
+
<img src="https://og.barelyhuman.xyz/generate?fontSize=20&title=foronce&subtitle=The+OTP+Library&fontSizeTwo=8&color=%23a1a1aa&backgroundColor=%2318181b" />
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
- [
|
|
4
|
-
- [
|
|
5
|
-
- [
|
|
6
|
-
|
|
7
|
-
- [API](#api)
|
|
8
|
-
|
|
9
|
-
> TOTP in a few functions
|
|
5
|
+
- [Usage](#usage)
|
|
6
|
+
- [Examples](#examples)
|
|
7
|
+
- [One Time Email Validation](#one-time-email-validation)
|
|
8
|
+
- [API](#api)
|
|
10
9
|
|
|
11
10
|
## Usage
|
|
12
11
|
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
#### One Time Email Validation
|
|
22
21
|
|
|
23
22
|
```ts
|
|
24
|
-
import { generateTOTPSecret,
|
|
23
|
+
import { generateTOTPSecret, isTOTPValid, totp } from 'foronce'
|
|
25
24
|
|
|
26
25
|
app.post('/login', (req, res) => {
|
|
27
26
|
const email = req.body.email
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foronce",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "The OTP Library",
|
|
5
5
|
"repository": "git@github.com:dumbjs/foronce.git",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Reaper <ahoy@barelyhuman.dev>",
|
|
@@ -36,6 +36,12 @@
|
|
|
36
36
|
"test": "uvu tests",
|
|
37
37
|
"test:ci": "c8 uvu tests "
|
|
38
38
|
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"otp",
|
|
41
|
+
"node",
|
|
42
|
+
"totp",
|
|
43
|
+
"crypto"
|
|
44
|
+
],
|
|
39
45
|
"lint-staged": {
|
|
40
46
|
"*.{js,css,md,json}": "prettier --write"
|
|
41
47
|
},
|