Module for authenticating to Microsoft to interact with thier Minecraft Bedrock Realm API.
import { authenticate } from '@mcbeutils/beauth'
authenticate(
  '[email protected]',
  'your-secret-password',
  (auth, error) => {
    if (error) return console.log('Failed to authorized! ' + error)
    const hash = auth.getHash()
    const xsts = auth.getXsts()
    console.log('Successfully authorized!')
  }
)const { authenticate } = require('@mcbeutils/beauth')
authenticate(
  '[email protected]',
  'your-secret-password',
  (auth, error) => {
    if (error) return console.log('Failed to authorized! ' + error)
    const hash = auth.getHash()
    const xsts = auth.getXsts()
    console.log('Successfully authorized!')
  }
)