MLoginError enum
Identifies an error that occurred when attempting to access MLogin.
Constructors
- MLoginError()
-
const
Values
- canceled → const MLoginError
-
The user canceled the process when the browser context was shown.
- noBrowserInstalled → const MLoginError
-
Only to be expected (as a rare edge case) on Android phones. Indicates that there was no suitable browser found to run a M-Login session.
If this error occurs, the SDK has already shown an error toast to the user, so no immediate need to process this.
- invalidRequest → const MLoginError
-
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.
-
The client is not authorized to request an authorization code using this method.
- accessDenied → const MLoginError
-
The client is not authorized to request an authorization code using this method.
- unsupportedResponseType → const MLoginError
-
The authorization server does not support obtaining an authorization code using this method.
- invalidScope → const MLoginError
-
The requested scope is invalid, unknown, or malformed.
- stateMismatch → const MLoginError
-
The response received from the M-Login did not match the made request. Might be a f*ck-up somewhere or an attack. Anyway: This attempt failed and the user can only try again.
- unknown → const MLoginError
-
Some unspecified error occurred. This indicates a bug in the sdk (or backend systems). Please contact the MLogin team!
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
MLoginError> - A constant List of the values in this enum, in order of their declaration.