Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

fortnite-api-manager

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortnite-api-manager

Module to make API calls to fortnite

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

Fortnite-Api-Manager

A library to interact with Fortnite services

Installation

using npm

npm i fortnite-api-manager

using yarn

yarn add fortnite-api-manager

Properties

HTTP

client.http; // client's http class

Endpoints

client.endpoints; // client's fortnite endpoints

Tokens

client.tokens; // client's fortnite tokens

Device Auth Credentials

client.accountId; // client's account id
client.deviceId; // client's device id
client.secret; // client's device auth secret

Client Session

client.session; // client's access token

Methods

Get Authorization Code URL

client.getAuthorizationCodeURL(); // returns a url to get authorization code from.

Generate Device Auth with Authorization Code

Get an authorization code from here.

client.generateDeviceAuthWithAuthorizationCode({
    authorizationCode: 12345678912345678912345678912312
}); // generate a device auth object from authorization code

Login with Device Auth

client.loginWithDeviceAuth({
    accountId,
    deviceId,
    secret
}); // login in with device auth object

Generate Exchange Code

client.generateExchangeCode(); // generate an exchange code for current logged-in account

Keywords

fortnite

FAQs

Package last updated on 30 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts