M4eAuth class
Exposes SDK Auth Api methods
Accessing the instantiated m4eAuth
methods
is done by:
final _m4eAuth = M4eAuth();
final _isAuthenticated = await _m4eAuth.isAuthenticated();
Constructors
- M4eAuth({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
-
getM4eUser(
UniqueId userId) → Future< User> -
Returns an m4e user with
user-id
[...] -
isAuthenticated(
) → Future< AuthToken> -
Returns
AuthToken
if user is authenticated [...] -
refreshAccessToken(
) → Future< AuthToken> -
Requests
access-token
from m4e using existingrefresh-token
[...] -
verifyOTPCode(
M4eAuthOTPVerificationForm m4eAuthOTPVerificationForm) → Future< AuthToken> -
Takes in
M4eAuthOTPVerificationForm
parameter and returnsAuthToken
on success call [...] -
verifyPhoneNumber(
M4eAuthPhoneNumberForm m4eAuthPhoneNumberForm) → Future< UniqueId> -
Takes in
M4eAuthPhoneNumberForm
parameter to send verification-code (OTP) from m4e [...] -
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 ==(
dynamic other) → bool -
The equality operator. [...]
inherited