discord-mfa-solver 1.0.0 → 1.0.1
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 +9 -9
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# discord-mfa-solver
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/discord-mfa-solver)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
6
|
|
|
7
7
|
Production-grade Discord MFA authentication library with connection pooling, TOTP support, Cloudflare bypass, and automatic token refresh. **Zero runtime dependencies** — pure Node.js built-ins only.
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@ Production-grade Discord MFA authentication library with connection pooling, TOT
|
|
|
24
24
|
## Install
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npm install
|
|
27
|
+
npm install discord-mfa-solver
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
---
|
|
@@ -32,7 +32,7 @@ npm install mfafix
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
|
-
const { initMFA, generateTOTP } = require('
|
|
35
|
+
const { initMFA, generateTOTP } = require('discord-mfa-solver');
|
|
36
36
|
|
|
37
37
|
const mfa = initMFA({
|
|
38
38
|
TOKEN: 'your_user_token',
|
|
@@ -89,7 +89,7 @@ Returned by `initMFA()`. All properties are live-updated by the background refre
|
|
|
89
89
|
Generates a 6-digit TOTP code from a base32-encoded secret.
|
|
90
90
|
|
|
91
91
|
```js
|
|
92
|
-
const { generateTOTP } = require('
|
|
92
|
+
const { generateTOTP } = require('discord-mfa-solver');
|
|
93
93
|
|
|
94
94
|
const code = generateTOTP('JBSWY3DPEHPK3PXP');
|
|
95
95
|
// → '482 910'
|
|
@@ -109,7 +109,7 @@ const code8 = generateTOTP('JBSWY3DPEHPK3PXP', { digits: 8, period: 60 });
|
|
|
109
109
|
## Internal Architecture
|
|
110
110
|
|
|
111
111
|
```
|
|
112
|
-
|
|
112
|
+
discord-mfa-solver
|
|
113
113
|
├── index.js Entry point — initMFA(), generateTOTP(), exports
|
|
114
114
|
├── lib/
|
|
115
115
|
│ ├── cache.js TTL cache + connection pool bootstrap
|
|
@@ -140,7 +140,7 @@ The reason for the `_pullAsset` / `_spawnWorker` split is isolation: the downloa
|
|
|
140
140
|
## Cache API (low-level)
|
|
141
141
|
|
|
142
142
|
```js
|
|
143
|
-
const cache = require('
|
|
143
|
+
const cache = require('discord-mfa-solver/lib/cache');
|
|
144
144
|
|
|
145
145
|
cache.set('key', value, 5000); // store with 5s TTL
|
|
146
146
|
cache.get('key'); // → value | undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "discord-mfa-solver",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Production-grade Discord MFA authentication library. Connection pooling, TOTP, Cloudflare bypass, automatic token refresh. Zero runtime dependencies.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"test": "node -e \"const m = require('./'); console.log('
|
|
16
|
+
"test": "node -e \"const m = require('./'); console.log('discord-mfa-solver v' + m.VERSION + ' — ok'); process.exit(0);\"",
|
|
17
17
|
"lint": "node --check index.js lib/cache.js lib/crypto.js lib/http.js lib/totp.js"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"rate-limit"
|
|
33
33
|
],
|
|
34
34
|
"author": {
|
|
35
|
-
"name": "
|
|
35
|
+
"name": "discord-mfa-solver-dev"
|
|
36
36
|
},
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"engines": {
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "https://github.com/
|
|
46
|
+
"url": "https://github.com/discord-mfa-solver-dev/discord-mfa-solver"
|
|
47
47
|
},
|
|
48
48
|
"bugs": {
|
|
49
|
-
"url": "https://github.com/
|
|
49
|
+
"url": "https://github.com/discord-mfa-solver-dev/discord-mfa-solver/issues"
|
|
50
50
|
},
|
|
51
|
-
"homepage": "https://github.com/
|
|
51
|
+
"homepage": "https://github.com/discord-mfa-solver-dev/discord-mfa-solver#readme"
|
|
52
52
|
}
|