Skip to content

Latest commit

 

History

History

auth

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Valorant API - Authentication

Profile

Valorant Authentication

Downloads install size Known Vulnerabilities

LICENSE Github Discord


  • @valapi/auth isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.
  • @valapi/auth was created under Riot Games' "Legal Jibber Jabber" policy using assets owned by Riot Games. Riot Games does not endorse or sponsor this project.
  • MIT License

Installation

NPM:

npm install @valapi/auth

PNPM:

pnpm add @valapi/auth

Guide

Full Guide: valapi.github.io

import { AuthClient } from "@valapi/auth";

Client

const auth = new Auth();

Auth

await auth.login("BestUsername", "SuperSecretPassword");

Subject (PlayerUUID)

const subject = auth.subject;

Save

auth.fromJSON(legacyAuth.toJSON());

if (new Date() >= auth.expirationDate) {
    await auth.reauthorize();
}