M4eAuthService class
Exposes SDK Auth Api methods
Accessing the instantiated M4eAuthService
methods
is done by:
final _authService = M4eAuthService();
final _isAuthenticated = await _authService.isAuthenticated();
Constructors
- M4eAuthService({AuthApi authApi, DataConnectionChecker connectionChecker })
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
getAuthCredentials(
) → Future< M4eAuthPhoneNumberForm> -
Returns
M4eAuthPhoneNumberForm
credentials used for m4e authentication [...] -
isAuthenticated(
) → Future< M4eAuthToken> -
Returns
AuthToken
if user is authenticated [...] -
refreshAccessToken(
) → Future< M4eAuthToken> -
Requests
access-token
from m4e using existingrefresh-token
[...] -
signout(
) → Future< M4eUnitImpl> - Signout authenticated m4e user
-
verifyOTPCode(
M4eAuthOTPVerificationForm m4eAuthOTPVerificationForm) → Future< M4eAuthToken> -
Takes in
M4eAuthOTPVerificationForm
parameter and returnsAuthToken
on success call [...] -
verifyPhoneNumber(
M4eAuthPhoneNumberForm m4eAuthPhoneNumberForm) → Future< M4eUniqueId> -
Takes in
M4eAuthPhoneNumberForm
parameter to send verification-code (OTP) from m4e to provided phone number [...] -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited