diff --git a/README.md b/README.md index 67e68ae6..5856e749 100755 --- a/README.md +++ b/README.md @@ -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(); @@ -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**. \ No newline at end of file +Released under **Creative Commons Attribution‑NonCommercial 4.0 International**.