Skip to content

This is an Unofficial API which can login to an Valorant's account using Riot username and password

Notifications You must be signed in to change notification settings

dhvitOP/val-checker

Repository files navigation

Riot Account Checker

Introduction

  • This is an API project which was made by me as a side-project. This API connects you with Riot's Valorant Unofficial API to get any account's detail using it's username and password
  • This project also supports 2FA Multi-Factor Codes to login into an account
  • This API uses hono as its web-server framework and typescript for type-safety (Though i haven't used much type safety as of now)
  • This API doesn't store username and password of any account at all and uses Riot's /reauth route to Authenticate after session expiration

Features

  • Uses MongoDB to store account's data and could be used to cache account's data in future
  • No storage of username and password of account
  • Popular and somewhat optimized frameworks, modules are used such as Hono, Typescript
  • Bun is supported

Database Purposes

  • I want to make this sure that database is used not to just store account's data and its details but also to store its cookies to access the Riot's API and also to Re-Authenticate without the use of username and password

Prerequisites and Config requirements

Installation

All the commands are ran in the console assumed to be in the root directory of the project

Node Modules

  • You can use any package manager such as npm,pnpm or bun. But for the sake of popularity, npm will be used in this guide
  • npm install
  • This process may take some minutes completely depends on your pkg manager and your internet speed and stability.

Checking and Filling the Configurations

  • There are configurations of the project in constants/config.json file
  • Make sure to read the comments and fill the config as per your requirement

Building the project

  • You can run build script from package.json to build the project and output the result in out directory
  • tsc --build
  • This command might take some minutes to be completed, so be patient.

Starting the Project

  • You can run start script to start using the output files from build or direct-run/dev script to run it directly without using builds
  • npm start

Some Other things

There are server timings built-in and given with the response in headers
Refer to Hono's Docs Honestly I don't know why i did this

Guide

  • To see every routes of this API, please check constants/routes.json or go to /routes route of the API to get details on every route
  • To report any issue you are facing, please create an issue request in github
  • If you have any features that you have added in the modified version of this API, you are welcomed to create a pull request and have it mergedin this main repository
  • To create any new route, you have to create a json object in constants/routes.json just as others are created and also create a new file according to the file location mentioned in routes.json and follow the method just as in routes/index.ts. All routes are to be created in the routes folder

NOTICE

This is something you'll expect but obviously this is for only educational purposes and doesn't mean to harm or encourage anyone to bring harm to anyone using this tool