Skip to content

login tokens#51

Closed
Shuu-37 wants to merge 4 commits into
LandSandBoat:mainfrom
phoenixffxi:fix/json-password-copypaste
Closed

login tokens#51
Shuu-37 wants to merge 4 commits into
LandSandBoat:mainfrom
phoenixffxi:fix/json-password-copypaste

Conversation

@Shuu-37

@Shuu-37 Shuu-37 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Shuu-37 and others added 4 commits April 11, 2026 22:14
Read `trust_token` from the JSON args and prefer it over the disk-loaded
token, so the launcher can hand xiloader an auth-service-minted trust token
to send to xi_connect in place of an OTP.

Also fix two pre-existing `value_or({})` lines that don't compile under
MSVC 14.38 (braced-init can't be deduced) — use `value_or(std::string{})`.
Parse an optional login_token from the --json config and send it in the 0x10
login JSON. When present it stands in for password + OTP (password may be empty),
and a username+token (no password) now enables autologin. Handle the new
LOGIN_ERROR_LAUNCH_TOKEN_INVALID (0x14) result with a 'session expired, log in
again' message.

Backward compatible: login_token is optional; the existing password/trust-token
path is unchanged.
feat: optional login_token boot (token-based launcher login)
@Shuu-37

Shuu-37 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of #50, which is the intended PR. This one was opened from our fork's working branch (fix/json-password-copypaste) by mistake, so it picks up extra unrelated changes (a stray internal analysis doc and a separate trust-token commit). #50 is the clean cherry-pick of just the login_token boot change (3 files). Apologies for the noise!

@Shuu-37 Shuu-37 closed this Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant