Versions in this module Expand all Collapse all v0 v0.3.2 Aug 6, 2021 Changes in this version + type AuthenticatorApp struct + AssetsGroup string + AuthyID uint64 + Digits int + ID string + Name string + SecretSeed string + SerialID int + Version int + func (a AuthenticatorApp) Token() (string, error) + type AuthenticatorAppsResponse struct + AuthenticatorApps []AuthenticatorApp + Deleted []AuthenticatorApp + Message string + Success bool + type AuthenticatorToken struct + AccountType string + Digits int + EncryptedSeed string + Name string + OriginalName string + PasswordTimestamp uint64 + Salt string + UniqueID string + func (t AuthenticatorToken) Decrypt(passphrase string) (string, error) + func (t AuthenticatorToken) Description() string + type AuthenticatorTokensResponse struct + AuthenticatorTokens []AuthenticatorToken + Deleted []AuthenticatorToken + Message string + Success bool + type Client struct + APIKey string + UserAgent string + func NewClient() (Client, error) + func (c Client) CheckDeviceRegistration(ctx context.Context, userID uint64, requestID string) (DeviceRegistrationStatus, error) + func (c Client) CompleteDeviceRegistration(ctx context.Context, userID uint64, pin string) (CompleteDeviceRegistrationResponse, error) + func (c Client) QueryAuthenticatorApps(ctx context.Context, userID uint64, deviceID uint64, deviceSeed string) (AuthenticatorAppsResponse, error) + func (c Client) QueryAuthenticatorTokens(ctx context.Context, userID uint64, deviceID uint64, deviceSeed string) (AuthenticatorTokensResponse, error) + func (c Client) QueryDevicePrivateKey(ctx context.Context, deviceID uint64, deviceSeed string) (DevicePrivateKeyResponse, error) + func (c Client) QueryUser(ctx context.Context, countryCallingCode int, phone string) (UserStatus, error) + func (c Client) RequestDeviceRegistration(ctx context.Context, userID uint64, via ViaMethod) (StartDeviceRegistrationResponse, error) + type CompleteDeviceRegistrationResponse struct + AuthyID uint64 + Device struct{ ... } + type DevicePrivateKeyResponse struct + Message string + PrivateKey string + Success bool + func (r DevicePrivateKeyResponse) AsPrivateKey() (*rsa.PrivateKey, error) + type DeviceRegistrationStatus struct + PIN string + Status string + Success bool + type StartDeviceRegistrationResponse struct + ApprovalPIN int + Message string + Provider string + RequestID string + Success bool + type UserStatus struct + AuthyID uint64 + DevicesCount int + ForceOTT bool + Message string + Success bool + func (us UserStatus) IsActiveUser() bool + type ViaMethod string + const ViaMethodCall + const ViaMethodPush + const ViaMethodSMS