UaePassAPI class
The UaePassAPI class provides methods to facilitate authentication with UAE Pass, a digital identity solution provided by the United Arab Emirates government.
Constructors
- UaePassAPI({required String clientId, required String redirectUri, required String clientSecrete, required String appScheme, required bool isProduction, String? language})
- Constructs a new instance of the UaePassAPI class.
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
-
getAccessToken(
String code) → Future< String?> - Exchanges the authorization code for an access token.
-
getUserProfile(
String token) → Future< UAEPASSUserProfile?> - Get profile information
-
logout(
BuildContext context) → Future - Initiates logout.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signIn(
BuildContext context) → Future< String?> - Initiates the UAE Pass authentication process.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited