Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ import { Launch, Microsoft } from 'minecraft-java-core';

// ⚠️ In production, perform auth **before** initialising the launcher
// so you can handle refresh / error flows cleanly.
const auth = await Microsoft.auth({
client_id: '00000000-0000-0000-0000-000000000000',
type: 'terminal' // 'electron' | 'nwjs'
});
const auth = await new Microsoft('00000000-0000-0000-0000-000000000000').getAuth('terminal'); // 'electron' | 'nwjs'

const launcher = new Launch();

Expand Down Expand Up @@ -212,4 +209,4 @@ See the commit history for a full list. Special thanks to:
---

### License
Released under **Creative Commons Attribution‑NonCommercial 4.0 International**.
Released under **Creative Commons Attribution‑NonCommercial 4.0 International**.