Skip to content

Conversation

1ly4s0
Copy link

@1ly4s0 1ly4s0 commented Jun 3, 2025

This update straightens out the “Standard Example (ESM)” snippet so newcomers can copy-paste it and launch the game without surprises.

What changed

  • Pass client_id to the constructornew Microsoft('<client_id>').
  • Call getAuth('terminal') (or 'electron' | 'nwjs') instead of feeding it an object it can’t parse.
  • Left every original comment and the rest of the code untouched so the diff is minimal and familiar.

Why

The previous sample looked fine at a glance but silently returned false, causing the launcher to run offline (or just error). This tweak matches the actual method signature and works out-of-the-box on Node 18+ / TS 5.

No library code changes, just docs.

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