Versions in this module Expand all Collapse all v0 v0.1.1 Mar 22, 2025 v0.1.0 Mar 22, 2025 Changes in this version + const Auth0Url + const AuthorizationHeader + const ContentType + const EmailOrPasswordInvalidErrorMessage + const GetAccessTokenErrorMessage + const GetArkoseTokenErrorMessage + const GetAuthorizedUrlErrorMessage + const GetStateErrorMessage + const LoginPasswordUrl + const OTPUrl + const ParseUserInfoErrorMessage + const SendOTPErrorMessage + const SendOTPUrl + const XAuthorizationHeader + var UserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" + func NewHttpClient(proxyUrl string) tls_client.HttpClient + type AccountCookies map[string][]*http.Cookie + type AccountInfo struct + Account struct{ ... } + type Error struct + Details string + Location string + StatusCode int + func NewError(location string, statusCode int, details string) *Error + type OTPNotifier func(email string) error + type OTPProvider func(email string) (string, error) + type Result struct + AccessToken string + PUID string + TeamUserID string + type UserID struct + Accounts map[string]AccountInfo + type UserLogin struct + Password string + Result Result + Username string + func NewAuthenticator(emailAddress, password, proxy string) *UserLogin + func (userLogin *UserLogin) Begin() *Error + func (userLogin *UserLogin) CheckPassword(state string, username string, password string) (string, int, error) + func (userLogin *UserLogin) CheckUsername(authorizedUrl string, username string) (string, int, error) + func (userLogin *UserLogin) GetAccessToken() string + func (userLogin *UserLogin) GetAccessTokenInternal(code string) (string, int, error) + func (userLogin *UserLogin) GetAuthResult() Result + func (userLogin *UserLogin) GetAuthorizedUrl(csrfToken string) (string, int, error) + func (userLogin *UserLogin) GetPUID() (string, *Error) + func (userLogin *UserLogin) GetTeamUserID() (string, *Error) + func (userLogin *UserLogin) GetToken() (int, string, string) + func (userLogin *UserLogin) RefreshIOSToken(refreshToken string) (string, *Error) + func (userLogin *UserLogin) RenewWithCookies() *Error + func (userLogin *UserLogin) ResetCookies() + func (userLogin *UserLogin) SaveCookies() *Error + func (userLogin *UserLogin) SetOTPCallbacks(notifier OTPNotifier, provider OTPProvider)