startAuthentication abstract method
Starts the authentication of a user by sending him/her a validation code by email and/or mobile phone. Use this service if you would like to sign-up or login your user
Parameters:
healthcareProfessionalId
The id of the healthcare professional that wants to invite the user for its authentication. Use the id of the hcp in charge of the database where you want to add this new userfirstName
The firstname of the user to authenticatelastName
The lastname of the user to authenticaterecaptcha
The recaptcha key used during authentication processbypassTokenCheck
Prevent the token check during the validation processemail
The email of the user to authenticatemobilePhone
The mobile phone of the user to authenticate
Returns
- The AuthenticationProcess information needed to complete the authentication in the completeAuthentication service
Implementation
Future<AuthenticationProcess> startAuthentication(
String healthcareProfessionalId, String firstName, String lastName, String recaptcha, bool bypassTokenCheck,
{String? email, String? mobilePhone});