Skip to content

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

License

Notifications You must be signed in to change notification settings

MCBE-Utilities/BeAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BeAuth

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

Usage Example

Typescript

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!')
  }
)

JavaScript

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!')
  }
)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published