1.1.2 • Published 1 year ago

@mcbeutils/beauth v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

BeAuth

Module for authenticating to Microsoft to interact with thier Minecraft Bedrock Realm API.

Usage Example

Typescript

import { authenticate } from '@mcbeutils/beauth'

authenticate(
  'your-email@outlook.com',
  '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!')
  }
)

JavaScript

const { authenticate } = require('@mcbeutils/beauth')

authenticate(
  'your-email@outlook.com',
  '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!')
  }
)