@yaelouuu/fortnite-api 9.1.0 → 9.1.1

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 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 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.
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):
@@ -274,6 +274,11 @@ export declare class TournamentsResource {
274
274
  * Ranked, or a custom-key scrim hosted by anyone. This is the only route to a player's
275
275
  * non-tournament matches: Epic exposes no match-history listing. **Custom plan.**
276
276
  *
277
+ * The token flow authenticates as the Fortnite client, not as your application: Epic warns
278
+ * the player, and Epic Account Services developer terms do not allow routing your users
279
+ * through it — suited to tools a player runs for themselves, not third-party apps asking
280
+ * other players to log in.
281
+ *
277
282
  * Requires that player's OWN Fortnite token: it is verified against `accountId` before
278
283
  * anything is forwarded (any other account's token returns **403**). Fortnite kills every
279
284
  * other session of an account when the game launches, so a token obtained before the
@@ -367,6 +367,11 @@ class TournamentsResource {
367
367
  * Ranked, or a custom-key scrim hosted by anyone. This is the only route to a player's
368
368
  * non-tournament matches: Epic exposes no match-history listing. **Custom plan.**
369
369
  *
370
+ * The token flow authenticates as the Fortnite client, not as your application: Epic warns
371
+ * the player, and Epic Account Services developer terms do not allow routing your users
372
+ * through it — suited to tools a player runs for themselves, not third-party apps asking
373
+ * other players to log in.
374
+ *
370
375
  * Requires that player's OWN Fortnite token: it is verified against `accountId` before
371
376
  * anything is forwarded (any other account's token returns **403**). Fortnite kills every
372
377
  * other session of an account when the game launches, so a token obtained before the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaelouuu/fortnite-api",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
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",