MobileAuthenticationClient class Null safety

The MobileAuthenticationClient class represents the entry point to the SDK.

Your application should generally create an application scoped MobileAuthenticationClient instance, by passing in a Configuration that specifies the MobileAuthenticationClient behavior. The configuration defines the URLs used to perform operations with a NEVIS Mobile Authentication backend.

To create the MobileAuthenticationClient, assuming that the Configuration has already been created, here is an example using MobileAuthenticationClientInitializer to setup the SDK during application startup:

  [...]
  Future<void> createMobileAuthenticationClient({
    required Configuration configuration,
  }) async {
    await MobileAuthenticationClientInitializer.initializer
      .configuration(configuration)
      .onSuccess((client) {
        // handle the MobileAuthenticationClient
      })
      .onError((error) {
        // handle error
      })
      .execute();
  }
  [...]

See Configuration

Constructors

MobileAuthenticationClient()

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
localData LocalData
Returns the object that can be used to get information about the data (authenticators, device information) managed by the SDK.
read-only
operations Operations
Returns the object that can be used to invoke operations against the server.
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited