authenticate method Null safety

Future<AuthToken> authenticate(
  1. AuthPayload payload
)

Authenticates with payload and sets the authToken

Implementation

Future<AuthToken> authenticate(AuthPayload payload) async {
  await workflowController.changeState(AuthStatus.authenticating);
  final result = await _adapterFactory.authenticate(payload);
  _saveAuthToken(result);
  return result;
}