Skip to content

Commit 9dbc7ec

Browse files
committed
disable multi-factor authentication
1 parent 714eaa5 commit 9dbc7ec

File tree

9 files changed

+13
-31
lines changed

9 files changed

+13
-31
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ VAL_REGION="na"
6868
VAL_USER="RiotUsername"
6969
VAL_PASS="Passowrd"
7070

71-
# multi-factor must be "enable"
72-
VAL_MFA_REGION="ap"
73-
VAL_MFA_USER="RiotUsername"
74-
VAL_MFA_PASS="Password"
75-
7671
# https://developer.riotgames.com
7772
VAL_RIOT_API="API_KEY_123"
7873
```

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
"license": "MIT",
1818
"devDependencies": {
1919
"@types/jest": "^29.5.12",
20-
"@types/node": "^20.12.2",
21-
"@typescript-eslint/eslint-plugin": "^7.5.0",
22-
"@typescript-eslint/parser": "^7.5.0",
20+
"@types/node": "^20.12.7",
21+
"@typescript-eslint/eslint-plugin": "^7.7.0",
22+
"@typescript-eslint/parser": "^7.7.0",
2323
"dotenv": "^16.4.5",
2424
"eslint": "^8.57.0",
2525
"jest": "29.7.0",
2626
"rimraf": "^5.0.5",
2727
"ts-jest": "^29.1.2",
28-
"typedoc": "^0.25.12",
29-
"typescript": "^5.4.3"
28+
"typedoc": "^0.25.13",
29+
"typescript": "^5.4.5"
3030
},
3131
"scripts": {
3232
"test": "jest --detectOpenHandles",

packages/@valapi/auth/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ const authClient = new AuthClient();
7171
await authClient.login("BestUsername", "SuperSecretPassword");
7272
```
7373

74-
```typescript
75-
if (client.authenticationInfo.isMultifactor) {
76-
const verificationCode = 428793;
77-
78-
await authClient.verify(verificationCode);
79-
}
80-
```
81-
8274
**Subject** (PlayerUUID)
8375

8476
```typescript

packages/@valapi/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"homepage": "https://github.com/valapi/node-valapi/tree/master/packages/@valapi/auth#readme",
3131
"dependencies": {
3232
"@valapi/lib": "^4.0.0",
33-
"http-cookie-agent": "^6.0.1",
33+
"http-cookie-agent": "^6.0.3",
3434
"tough-cookie": "^4.1.3"
3535
},
3636
"devDependencies": {

packages/@valapi/auth/src/client/AuthClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class AuthClient extends AuthCore {
4040

4141
/**
4242
* Multi-Factor Authentication
43+
* @deprecated Please, Contact us if you find out how its works
4344
* @param {number} verificationCode Verification Code
4445
* @returns {Promise<void>}
4546
*/

packages/@valapi/auth/src/service/Multifactor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { AuthCore } from "../client/AuthCore";
55

66
export class Multifactor extends AuthService {
77
/**
8+
* @deprecated Please, Contact us if you find out how its works
89
* @param {number} verificationCode Verification Code
910
* @returns {Promise<AuthCore.Json>}
1011
*/

packages/valorant.ts/README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<div align="center">
1717

18-
# Valorant API - Support Multifactor
18+
# Valorant API
1919

2020
[![Profile][githubrepo_image]][github_url]
2121

@@ -39,7 +39,6 @@ NodeJS package that make more easier to use Valorant API
3939
4040
## Why Valorant.ts ?
4141

42-
- Support **Two-Factor Authentication**
4342
- All-In-One
4443
- Authentication
4544
- API
@@ -82,12 +81,6 @@ Authentication
8281
await AuthClient.login("BestUsername", "SuperSecretPassword");
8382
```
8483

85-
Two-Factor Authentication
86-
87-
```javascript
88-
await AuthClient.verify(428793 /* <--- Verification Code */);
89-
```
90-
9184
Daily Offers
9285

9386
```javascript
@@ -113,7 +106,7 @@ async function getOffersOf(ItemsId: string) {
113106
};
114107
}
115108

116-
const todayStore = await WebClient.Store.getStorefront(WebClient.getSubject());
109+
const todayStore = await WebClient.Store.StoreFront.get(WebClient.getSubject());
117110

118111
for (const ItemID of todayStore.data.SkinsPanelLayout.SingleItemOffers) {
119112
console.log(await getOffersOf(ItemID));

packages/valorant.ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"registry": "https://registry.npmjs.org",
66
"access": "public"
77
},
8-
"description": "Valorant Api - Support Multifactor",
8+
"description": "Valorant API",
99
"keywords": [
1010
"riot",
1111
"api",

tsconfig.test.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"composite": true,
4-
"target": "es2023",
5-
"lib": [ "es2023", "es2022.error", "es2021.promise" ],
4+
"target": "es2022",
5+
"lib": [ "es2022", "es2022.error", "es2021.promise" ],
66
"module": "commonjs",
77
"moduleResolution": "node",
88
"resolveJsonModule": true,

0 commit comments

Comments
 (0)