mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-09 23:21:30 -07:00
[auth][api] accept the 20250424.01 client
Version check now answers "current" for a set of builds rather than one: SUPPORTED_GAME_VERSIONS carries 20230414 and 20250424.01. GAME_VERSION is unchanged and still what the server reports for itself (presence, rn.ver). Adds GET /api/versioncheck/islandedversions, always [] — we never island a build off into its own matchmaking pool. The 2025 build POSTs /cachedlogin/forplatformid/:platform/:id with a deviceId/platformAuth/time form body where the 2023 build GETs it, so that route now takes both methods. The body is accepted and ignored for now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -434,7 +434,14 @@ const app = new Hono<App>()
|
||||
// id, so the client can offer them on the login screen (and post one back as a
|
||||
// cached_login grant). No linked account → [], and the client falls back to a
|
||||
// fresh login / create_account.
|
||||
.get(
|
||||
//
|
||||
// GET or POST: the 2023 build asks with a GET, the 2025 build (20250424.01) POSTs
|
||||
// the same path with a form body — `deviceId`, `platformAuth` (a JSON blob holding
|
||||
// the platform's session ticket and app id) and `time`. The body is READ BY NOTHING
|
||||
// here; both methods answer the same list off the path params, so a newer client
|
||||
// gets its picker. Verifying that ticket is the eventual point of the POST.
|
||||
.on(
|
||||
['GET', 'POST'],
|
||||
'/cachedlogin/forplatformid/:platform/:id',
|
||||
describeRoute({
|
||||
tags: ['Cached login'],
|
||||
@@ -449,6 +456,10 @@ const app = new Hono<App>()
|
||||
'APKs: with no Meta SDK they have no real identity to ask about and stall on an',
|
||||
'empty picker. It consults nothing and returns one canned, non-redeemable entry',
|
||||
'with `requirePassword: true`, sending the build to username/password login.',
|
||||
'Older clients GET this; the 20250424.01 build POSTs it with a',
|
||||
'`deviceId` / `platformAuth` / `time` form body attesting the platform session.',
|
||||
'That body is accepted and ignored — both methods answer identically from the',
|
||||
'path params.',
|
||||
].join(' '),
|
||||
parameters: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user