signOut static method
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:
- B2COperationState.SUCCESS if successful (some platform may reload the app and so return nothing (e.g. web)),
- B2COperationState.CLIENT_ERROR if an error occurred,
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;
}