Categorygithub.com/BaiMeow/msauth
modulepackage
0.0.0-20211225042319-2589fe15df92
Repository: https://github.com/baimeow/msauth.git
Documentation: pkg.go.dev

# README

msauth

minecraft的微软验证登陆

使用

1.调用SetClient(clientID,clientSecret)设置clientID,一般clientSecret留空,clientid要先向azure申请,具体见https://wiki.vg/Microsoft_Authentication_Scheme

2.Login()登陆即可获取玩家档案和AccessToken

具体例子见example/example.go

# Functions

Login 返回玩家档案,AccessToken.
SetClient 来自microsoft的clientID和secret.
SetRedirectURL 默认为"http://127.0.0.1",具体看你azure那边重定向URI的设置.

# Structs

No description provided by the author
No description provided by the author