AGCAuth class
AGConnect Auth SDK entry class
Constructors
- AGCAuth()
Properties
-
currentUser
→ Future<
AGCUser?> -
Obtains information about the current user. If the user has not signed in, a null value is returned.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createEmailUser(
EmailUser user) → Future< SignInResult> - Creates an account using an email address.
-
createPhoneUser(
PhoneUser user) → Future< SignInResult> - Creates an account using a mobile number.
-
deleteUser(
) → Future< void> - Deletes the current user information and the user's cached data from the AppGallery Connect server.
-
getSupportedAuthList(
) → Future< List< int> ?> - Obtains the list of supported authentication modes. This API needs to be used with the third-party SDK for unified sign-in or packaging in aggregation services.
-
isAutoCollectionAAID(
) → Future< bool?> - Get AutoCollectionAAID
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestVerifyCodeWithEmail(
String email, VerifyCodeSettings settings) → Future< VerifyCodeResult?> - Applies for a verification code using an email address.
-
requestVerifyCodeWithPhone(
String countryCode, String phoneNumber, VerifyCodeSettings settings) → Future< VerifyCodeResult?> - Applies for a verification code using a mobile number.
-
resetPasswordWithEmail(
String email, String newPassword, String verifyCode) → Future< void> - Resets a user's password using the email address.
-
resetPasswordWithPhone(
String countryCode, String phoneNumber, String newPassword, String verifyCode) → Future< void> - Resets a user's password using the mobile number.
-
setAutoCollectionAAID(
bool isAutoCollection) → Future< void> - Set AutoCollectionAAID
-
signIn(
AGCAuthCredential credential) → Future< SignInResult> - Signs in a user to AppGallery Connect through third-party authentication.
-
signInAnonymously(
) → Future< SignInResult> - Signs in a user anonymously.
-
signOut(
) → Future< void> - Signs out a user and deletes the user's cached data.
-
tokenChanges(
) → Stream< TokenSnapshot> - Obtain token and tokens state
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited