Versions in this module Expand all Collapse all v1 v1.2.6 Feb 20, 2026 v1.2.5 Feb 20, 2026 v1.2.4 Feb 20, 2026 v1.2.3 Feb 20, 2026 v1.2.2 Feb 20, 2026 v1.2.1 Feb 20, 2026 v1.2.0 Feb 20, 2026 v1.1.0 Sep 19, 2025 v1.0.26 Apr 3, 2025 v1.0.25 Apr 3, 2025 v1.0.24 Feb 7, 2025 v1.0.23 Feb 7, 2025 v1.0.22 Feb 7, 2025 v1.0.21 Feb 6, 2025 v1.0.20 Feb 6, 2025 v1.0.19 Feb 6, 2025 v1.0.18 Feb 4, 2025 Changes in this version + const DefaultAPIURL + var File_auth_proto protoreflect.FileDescriptor + func GenerateEncryptedKey(password string, email string, salt []byte) (*big.Int, error) + func GenerateSalt() ([]byte, error) + func NewSRPClient(email string, password string, salt []byte) (*srp.SRP, error) + type ChangeEmailRequest struct + NewEmail string + OldEmail string + Proof []byte + func (*ChangeEmailRequest) Descriptor() ([]byte, []int) + func (*ChangeEmailRequest) ProtoMessage() + func (x *ChangeEmailRequest) GetNewEmail() string + func (x *ChangeEmailRequest) GetOldEmail() string + func (x *ChangeEmailRequest) GetProof() []byte + func (x *ChangeEmailRequest) ProtoReflect() protoreflect.Message + func (x *ChangeEmailRequest) Reset() + func (x *ChangeEmailRequest) String() string + type Client interface + GetSalt func(ctx context.Context, email string) (*GetSaltResponse, error) + Login func(ctx context.Context, email string, password string, deviceId string) (*LoginResponse, []byte, error) + LoginPrepare func(ctx context.Context, loginData *PrepareRequest) (*PrepareResponse, error) + SignOut func(ctx context.Context, logoutData *LogoutRequest) (bool, error) + SignUp func(ctx context.Context, email string, password string) ([]byte, error) + SignupEmailConfirmation func(ctx context.Context, data *ConfirmSignupRequest) (bool, error) + SignupEmailResendCode func(ctx context.Context, data *SignupEmailResendRequest) (bool, error) + func NewClient(baseURL string, insecure bool, writer io.Writer) Client + type CompleteChangeEmailRequest struct + Code string + NewEmail string + NewSalt []byte + NewVerifier []byte + OldEmail string + func (*CompleteChangeEmailRequest) Descriptor() ([]byte, []int) + func (*CompleteChangeEmailRequest) ProtoMessage() + func (x *CompleteChangeEmailRequest) GetCode() string + func (x *CompleteChangeEmailRequest) GetNewEmail() string + func (x *CompleteChangeEmailRequest) GetNewSalt() []byte + func (x *CompleteChangeEmailRequest) GetNewVerifier() []byte + func (x *CompleteChangeEmailRequest) GetOldEmail() string + func (x *CompleteChangeEmailRequest) ProtoReflect() protoreflect.Message + func (x *CompleteChangeEmailRequest) Reset() + func (x *CompleteChangeEmailRequest) String() string + type CompleteRecoveryByEmailRequest struct + Code string + Email string + NewSalt []byte + NewVerifier []byte + func (*CompleteRecoveryByEmailRequest) Descriptor() ([]byte, []int) + func (*CompleteRecoveryByEmailRequest) ProtoMessage() + func (x *CompleteRecoveryByEmailRequest) GetCode() string + func (x *CompleteRecoveryByEmailRequest) GetEmail() string + func (x *CompleteRecoveryByEmailRequest) GetNewSalt() []byte + func (x *CompleteRecoveryByEmailRequest) GetNewVerifier() []byte + func (x *CompleteRecoveryByEmailRequest) ProtoReflect() protoreflect.Message + func (x *CompleteRecoveryByEmailRequest) Reset() + func (x *CompleteRecoveryByEmailRequest) String() string + type ConfirmSignupRequest struct + Code string + Email string + func (*ConfirmSignupRequest) Descriptor() ([]byte, []int) + func (*ConfirmSignupRequest) ProtoMessage() + func (x *ConfirmSignupRequest) GetCode() string + func (x *ConfirmSignupRequest) GetEmail() string + func (x *ConfirmSignupRequest) ProtoReflect() protoreflect.Message + func (x *ConfirmSignupRequest) Reset() + func (x *ConfirmSignupRequest) String() string + type DeleteUserRequest struct + DeviceId string + Email string + Permanent bool + Proof []byte + func (*DeleteUserRequest) Descriptor() ([]byte, []int) + func (*DeleteUserRequest) ProtoMessage() + func (x *DeleteUserRequest) GetDeviceId() string + func (x *DeleteUserRequest) GetEmail() string + func (x *DeleteUserRequest) GetPermanent() bool + func (x *DeleteUserRequest) GetProof() []byte + func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message + func (x *DeleteUserRequest) Reset() + func (x *DeleteUserRequest) String() string + type EmptyResponse struct + func (*EmptyResponse) Descriptor() ([]byte, []int) + func (*EmptyResponse) ProtoMessage() + func (x *EmptyResponse) ProtoReflect() protoreflect.Message + func (x *EmptyResponse) Reset() + func (x *EmptyResponse) String() string + type GetSaltResponse struct + Salt []byte + func (*GetSaltResponse) Descriptor() ([]byte, []int) + func (*GetSaltResponse) ProtoMessage() + func (x *GetSaltResponse) GetSalt() []byte + func (x *GetSaltResponse) ProtoReflect() protoreflect.Message + func (x *GetSaltResponse) Reset() + func (x *GetSaltResponse) String() string + type LoginRequest struct + DeviceId string + Email string + Proof []byte + func (*LoginRequest) Descriptor() ([]byte, []int) + func (*LoginRequest) ProtoMessage() + func (x *LoginRequest) GetDeviceId() string + func (x *LoginRequest) GetEmail() string + func (x *LoginRequest) GetProof() []byte + func (x *LoginRequest) ProtoReflect() protoreflect.Message + func (x *LoginRequest) Reset() + func (x *LoginRequest) String() string + type LoginResponse struct + Devices []*LoginResponse_Device + EmailConfirmed bool + Id string + LegacyID int64 + LegacyToken string + LegacyUserData *LoginResponse_UserData + Success bool + func (*LoginResponse) Descriptor() ([]byte, []int) + func (*LoginResponse) ProtoMessage() + func (x *LoginResponse) GetDevices() []*LoginResponse_Device + func (x *LoginResponse) GetEmailConfirmed() bool + func (x *LoginResponse) GetId() string + func (x *LoginResponse) GetLegacyID() int64 + func (x *LoginResponse) GetLegacyToken() string + func (x *LoginResponse) GetLegacyUserData() *LoginResponse_UserData + func (x *LoginResponse) GetSuccess() bool + func (x *LoginResponse) ProtoReflect() protoreflect.Message + func (x *LoginResponse) Reset() + func (x *LoginResponse) String() string + type LoginResponse_Device struct + Created int64 + Id string + Name string + func (*LoginResponse_Device) Descriptor() ([]byte, []int) + func (*LoginResponse_Device) ProtoMessage() + func (x *LoginResponse_Device) GetCreated() int64 + func (x *LoginResponse_Device) GetId() string + func (x *LoginResponse_Device) GetName() string + func (x *LoginResponse_Device) ProtoReflect() protoreflect.Message + func (x *LoginResponse_Device) Reset() + func (x *LoginResponse_Device) String() string + type LoginResponse_UserData struct + BonusDays string + BonusMonths string + Code string + Devices []*LoginResponse_Device + Email string + Expiration int64 + Invitees []string + Inviters []string + Locale string + Phone string + Purchases []string + Referral string + Servers []string + Subscription string + Token string + UserId int64 + UserLevel string + UserStatus string + YinbiEnabled bool + func (*LoginResponse_UserData) Descriptor() ([]byte, []int) + func (*LoginResponse_UserData) ProtoMessage() + func (x *LoginResponse_UserData) GetBonusDays() string + func (x *LoginResponse_UserData) GetBonusMonths() string + func (x *LoginResponse_UserData) GetCode() string + func (x *LoginResponse_UserData) GetDevices() []*LoginResponse_Device + func (x *LoginResponse_UserData) GetEmail() string + func (x *LoginResponse_UserData) GetExpiration() int64 + func (x *LoginResponse_UserData) GetInvitees() []string + func (x *LoginResponse_UserData) GetInviters() []string + func (x *LoginResponse_UserData) GetLocale() string + func (x *LoginResponse_UserData) GetPhone() string + func (x *LoginResponse_UserData) GetPurchases() []string + func (x *LoginResponse_UserData) GetReferral() string + func (x *LoginResponse_UserData) GetServers() []string + func (x *LoginResponse_UserData) GetSubscription() string + func (x *LoginResponse_UserData) GetToken() string + func (x *LoginResponse_UserData) GetUserId() int64 + func (x *LoginResponse_UserData) GetUserLevel() string + func (x *LoginResponse_UserData) GetUserStatus() string + func (x *LoginResponse_UserData) GetYinbiEnabled() bool + func (x *LoginResponse_UserData) ProtoReflect() protoreflect.Message + func (x *LoginResponse_UserData) Reset() + func (x *LoginResponse_UserData) String() string + type LogoutRequest struct + DeviceId string + Email string + LegacyToken string + LegacyUserID int64 + func (*LogoutRequest) Descriptor() ([]byte, []int) + func (*LogoutRequest) ProtoMessage() + func (x *LogoutRequest) GetDeviceId() string + func (x *LogoutRequest) GetEmail() string + func (x *LogoutRequest) GetLegacyToken() string + func (x *LogoutRequest) GetLegacyUserID() int64 + func (x *LogoutRequest) ProtoReflect() protoreflect.Message + func (x *LogoutRequest) Reset() + func (x *LogoutRequest) String() string + type PrepareRequest struct + A []byte + Email string + func (*PrepareRequest) Descriptor() ([]byte, []int) + func (*PrepareRequest) ProtoMessage() + func (x *PrepareRequest) GetA() []byte + func (x *PrepareRequest) GetEmail() string + func (x *PrepareRequest) ProtoReflect() protoreflect.Message + func (x *PrepareRequest) Reset() + func (x *PrepareRequest) String() string + type PrepareResponse struct + B []byte + Proof []byte + func (*PrepareResponse) Descriptor() ([]byte, []int) + func (*PrepareResponse) ProtoMessage() + func (x *PrepareResponse) GetB() []byte + func (x *PrepareResponse) GetProof() []byte + func (x *PrepareResponse) ProtoReflect() protoreflect.Message + func (x *PrepareResponse) Reset() + func (x *PrepareResponse) String() string + type SignupEmailResendRequest struct + Email string + Salt []byte + func (*SignupEmailResendRequest) Descriptor() ([]byte, []int) + func (*SignupEmailResendRequest) ProtoMessage() + func (x *SignupEmailResendRequest) GetEmail() string + func (x *SignupEmailResendRequest) GetSalt() []byte + func (x *SignupEmailResendRequest) ProtoReflect() protoreflect.Message + func (x *SignupEmailResendRequest) Reset() + func (x *SignupEmailResendRequest) String() string + type SignupRequest struct + Email string + Salt []byte + SkipEmailConfirmation bool + Verifier []byte + func (*SignupRequest) Descriptor() ([]byte, []int) + func (*SignupRequest) ProtoMessage() + func (x *SignupRequest) GetEmail() string + func (x *SignupRequest) GetSalt() []byte + func (x *SignupRequest) GetSkipEmailConfirmation() bool + func (x *SignupRequest) GetVerifier() []byte + func (x *SignupRequest) ProtoReflect() protoreflect.Message + func (x *SignupRequest) Reset() + func (x *SignupRequest) String() string + type StartRecoveryByEmailRequest struct + Email string + func (*StartRecoveryByEmailRequest) Descriptor() ([]byte, []int) + func (*StartRecoveryByEmailRequest) ProtoMessage() + func (x *StartRecoveryByEmailRequest) GetEmail() string + func (x *StartRecoveryByEmailRequest) ProtoReflect() protoreflect.Message + func (x *StartRecoveryByEmailRequest) Reset() + func (x *StartRecoveryByEmailRequest) String() string + type ValidateRecoveryCodeRequest struct + Code string + Email string + func (*ValidateRecoveryCodeRequest) Descriptor() ([]byte, []int) + func (*ValidateRecoveryCodeRequest) ProtoMessage() + func (x *ValidateRecoveryCodeRequest) GetCode() string + func (x *ValidateRecoveryCodeRequest) GetEmail() string + func (x *ValidateRecoveryCodeRequest) ProtoReflect() protoreflect.Message + func (x *ValidateRecoveryCodeRequest) Reset() + func (x *ValidateRecoveryCodeRequest) String() string + type ValidateRecoveryCodeResponse struct + Valid bool + func (*ValidateRecoveryCodeResponse) Descriptor() ([]byte, []int) + func (*ValidateRecoveryCodeResponse) ProtoMessage() + func (x *ValidateRecoveryCodeResponse) GetValid() bool + func (x *ValidateRecoveryCodeResponse) ProtoReflect() protoreflect.Message + func (x *ValidateRecoveryCodeResponse) Reset() + func (x *ValidateRecoveryCodeResponse) String() string