login method

Future<LoginResult> login(
  1. {@required String stateToken}
)

Implementation

Future<LoginResult> login({@required String stateToken}) async {
  final result = await _channel
      .invokeMethod('Passikey#login', {'stateToken': stateToken});

  return LoginResult(
    stateToken: result['statToken'],
    partnerToken: result['ptnToken'],
  );
}