A valorant api with several endpoints and MFA implemented.
Server: Node, Express
Database: Postgres
To build this project run
npm run buildTo start this project run
npm run startTo use tsc-watch run
npm run watchTo run this project, you will need to add the following environment variables to your .env file
DATABASE_URL
Postgress database url
POST /auth| Body data | Type | Description |
|---|---|---|
username |
string |
Required. Valorant username |
password |
string |
Required. Valorant password |
returns tokens if no 2fa otherwise returns a cookie array
POST /auth| Body data | Type | Description |
|---|---|---|
code |
string |
Required. MFA code |
cookie |
array |
Required. Cookies list |
returns tokens
POST /store| Body data | Type | Description |
|---|---|---|
authToken |
string |
Required. Auth token |
entToken |
string |
Required. Ent token |
sub |
string |
Required. SUB token |
Example response
{
"daily":[{"name":"Elderflame Vandal" , "icon":"link-to-icon"}]
"hasnight":false
}
POST /skins| Body data | Type | Description |
|---|---|---|
authToken |
string |
Required. Auth token |
entToken |
string |
Required. Ent token |
sub |
string |
Required. SUB token |
returns user collection in
[
{"name":"Elderflame Vandal" , "icon":"link-to-icon"},
]
GET /settings| Body data | Type | Description |
|---|---|---|
authToken |
string |
Required. Auth token |
returns a base64 encoded user settings string