@yaelouuu/fortnite-api 9.1.1 → 9.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -158,7 +158,7 @@ if (session.inMatch && session.playlist === "playlist_showdown_cts_solo") {
158
158
  }
159
159
  ```
160
160
 
161
- Read before building on it: the token flow authenticates as the Fortnite client, not as your application — Epic warns the player accordingly, and if you ship an Epic Account Services application its developer terms do not allow routing your users through it (suited to tools a player runs for themselves, not third-party apps asking other players to log in); the token must be that player's **own** (verified — any other account's token is `403`); Fortnite kills every other session of an account when the game launches, so mint it from stored device auth (`/oauth/link`, then `/oauth/refresh-device` on `401`); the response is cached 10 s per account and Epic's party state lags the real match by about 1–2 minutes; the custom key is never returned (`hasCustomKey` only) and teammates appear as account ids only.
161
+ Read before building on it: the token flow authenticates as the Fortnite client, not as your application — Epic warns the player accordingly, and if you ship an Epic Account Services application its developer terms do not allow routing your users through it (suited to tools a player runs for themselves, not third-party apps asking other players to log in); the token must be that player's **own** (verified — any other account's token is `403`); Fortnite kills every other session of an account when the game launches, so store the `deviceAuth` that `/oauth/complete` returns and re-authenticate with `/oauth/refresh-device` on `401`; the response is cached 10 s per account and Epic's party state lags the real match by about 1–2 minutes; the custom key is never returned (`hasCustomKey` only) and teammates appear as account ids only.
162
162
 
163
163
  #### Check Tournament Eligibility
164
164
  Verify if a player meets requirements for major tournaments (e.g., 14 tournaments in 180 days):
@@ -282,8 +282,8 @@ export declare class TournamentsResource {
282
282
  * Requires that player's OWN Fortnite token: it is verified against `accountId` before
283
283
  * anything is forwarded (any other account's token returns **403**). Fortnite kills every
284
284
  * other session of an account when the game launches, so a token obtained before the
285
- * player started playing is dead by the time they play — obtain it from stored device
286
- * auth (`/oauth/link` once, then `/oauth/refresh-device` on 401), not a one-off login.
285
+ * player started playing is dead by the time they play — store the `deviceAuth` that
286
+ * `/oauth/complete` returns and re-authenticate with `/oauth/refresh-device` on 401.
287
287
  *
288
288
  * While the player is in a game, `sessionId` is the replay match ID: pass it to the
289
289
  * replay endpoints once the match has ended. `playlist` lets you filter (e.g. scrims)
@@ -375,8 +375,8 @@ class TournamentsResource {
375
375
  * Requires that player's OWN Fortnite token: it is verified against `accountId` before
376
376
  * anything is forwarded (any other account's token returns **403**). Fortnite kills every
377
377
  * other session of an account when the game launches, so a token obtained before the
378
- * player started playing is dead by the time they play — obtain it from stored device
379
- * auth (`/oauth/link` once, then `/oauth/refresh-device` on 401), not a one-off login.
378
+ * player started playing is dead by the time they play — store the `deviceAuth` that
379
+ * `/oauth/complete` returns and re-authenticate with `/oauth/refresh-device` on 401.
380
380
  *
381
381
  * While the player is in a game, `sessionId` is the replay match ID: pass it to the
382
382
  * replay endpoints once the match has ended. `playlist` lets you filter (e.g. scrims)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaelouuu/fortnite-api",
3
- "version": "9.1.1",
3
+ "version": "9.1.2",
4
4
  "description": "SDK for Fortnite API - api-fortnite.com - Author : Yael Brinkert",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",