ClientAuth class

Auth.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acceptLoginToken({required Uint8List token}) Future<Result<AuthorizationBase>>
Accept Login Token.
bindTempAuthKey({required int permAuthKeyId, required int nonce, required DateTime expiresAt, required Uint8List encryptedMessage}) Future<Result<Boolean>>
Bind Temp Auth Key.
cancelCode({required String phoneNumber, required String phoneCodeHash}) Future<Result<Boolean>>
Cancel Code.
checkPassword({required InputCheckPasswordSRPBase password}) Future<Result<AuthAuthorizationBase>>
Check Password.
checkRecoveryPassword({required String code}) Future<Result<Boolean>>
Check Recovery Password.
dropTempAuthKeys({required List<int> exceptAuthKeys}) Future<Result<Boolean>>
Drop Temp Auth Keys.
exportAuthorization({required int dcId}) Future<Result<AuthExportedAuthorizationBase>>
Export Authorization.
exportLoginToken({required int apiId, required String apiHash, required List<int> exceptIds}) Future<Result<AuthLoginTokenBase>>
Export Login Token.
importAuthorization({required int id, required Uint8List bytes}) Future<Result<AuthAuthorizationBase>>
Import Authorization.
importBotAuthorization({required int flags, required int apiId, required String apiHash, required String botAuthToken}) Future<Result<AuthAuthorizationBase>>
Import Bot Authorization.
importLoginToken({required Uint8List token}) Future<Result<AuthLoginTokenBase>>
Import Login Token.
importWebTokenAuthorization({required int apiId, required String apiHash, required String webAuthToken}) Future<Result<AuthAuthorizationBase>>
Import Web Token Authorization.
logOut() Future<Result<AuthLoggedOutBase>>
Log Out.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recoverPassword({required String code, AccountPasswordInputSettingsBase? newSettings}) Future<Result<AuthAuthorizationBase>>
Recover Password.
requestFirebaseSms({required String phoneNumber, required String phoneCodeHash, String? safetyNetToken, String? iosPushSecret}) Future<Result<Boolean>>
Request Firebase Sms.
requestPasswordRecovery() Future<Result<AuthPasswordRecoveryBase>>
Request Password Recovery.
resendCode({required String phoneNumber, required String phoneCodeHash}) Future<Result<AuthSentCodeBase>>
Resend Code.
resetAuthorizations() Future<Result<Boolean>>
Reset Authorizations.
resetLoginEmail({required String phoneNumber, required String phoneCodeHash}) Future<Result<AuthSentCodeBase>>
Reset Login Email.
sendCode({required String phoneNumber, required int apiId, required String apiHash, required CodeSettingsBase settings}) Future<Result<AuthSentCodeBase>>
Send Code.
signIn({required String phoneNumber, required String phoneCodeHash, String? phoneCode, EmailVerificationBase? emailVerification}) Future<Result<AuthAuthorizationBase>>
Sign In.
signUp({required String phoneNumber, required String phoneCodeHash, required String firstName, required String lastName}) Future<Result<AuthAuthorizationBase>>
Sign Up.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited