auth

package
v0.0.0-...-d8d03e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinecraftAuthentication

type MinecraftAuthentication struct {
	AccessToken    string
	XboxLive       string
	Userhash       string
	XstsToken      string
	MinecraftToken string
}

func NewMinecraftAuthentication

func NewMinecraftAuthentication(accessToken string) (*MinecraftAuthentication, error)

func (*MinecraftAuthentication) AuthXSTS

func (m *MinecraftAuthentication) AuthXSTS() error

func (*MinecraftAuthentication) AuthXboxLive

func (m *MinecraftAuthentication) AuthXboxLive() error

func (*MinecraftAuthentication) AuthenticateMinecraft

func (m *MinecraftAuthentication) AuthenticateMinecraft() error

type MsAuth

type MsAuth struct {
	AuthCode     string
	ClientID     string
	AccessToken  string
	RefreshToken string
}

func NewMsAuth

func NewMsAuth(clientID string) (*MsAuth, error)

func (*MsAuth) GetAccessToken

func (m *MsAuth) GetAccessToken() error

func (*MsAuth) GetAuthorizationCode

func (m *MsAuth) GetAuthorizationCode() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL