signOut static method

Future<String> signOut(
  1. String subject
)

Sign out user and erases associated tokens.

The subject is used to specify the user to authenticate (it corresponds to the

Returns a Future containing a tag String. The tag can be used to differentiate operations. In fact, every AzureB2C asynchronous operation return a B2COperationResult in which the source tag is indicated.

The result of the method call is returned asynchronously to any AzureB2CCallback registered to the B2COperationSource.SIGN_OUT topic.

Possible operation states are:

Implementation

static Future<String> signOut(String subject) async {
  var tag = GUIDGen.generate();
  var args = {"tag": tag, "subject": subject};
  await _channel.invokeMethod('signOut', args);
  return tag;
}