authenticate method
Authenticates a password.
correlationId
(optional) transaction id to trace execution through call chain.userId
an id of password.password
a password to be authenticated. Return Future that receives bool value of the authentication result.
Implementation
@override
Future<bool> authenticate(
String? correlationId, String userId, String password) async {
var timing = instrument(correlationId, 'passwords.authenticate');
var authenticated =
await controller.authenticate(correlationId, userId, password);
timing.endTiming();
return authenticated;
}