Authentication
Catalyst Authentication features enable you to manage the user authentication of your Catalyst app, add users, and configure their user accounts.
Create a New User Instance
You can create a new user instance, and enable the methods defined in this class to access the instance object. This will prevent unnecessary server calls.
You must pass the user’s details to the newUser() method, as shown in the code syntax below. You must pass the user’s email address and first name mandatorily to create the instance successfully.
copyZCatalystUserDelegate newUser({ required String firstName, required String emailId, String? lastName, ZCatalystRole? role, })
Parameters:
- lastName (Mandatory): The last name of the new user.
- email (Mandatory): Email address of the user to which the invitation mail will be sent.
- lastName: The last name of the new user.
- role: The role the user must be assigned to.
A sample code snippet is shown below:
copyZCatalystUserDelegate newUser = ZCatalystApp.getInstance().newUser( firstName: 'Patricia', emailId: 'p.boyle@zylker.com', lastname: 'Boyle', role: Admin, );
Last Updated 2024-09-12 18:16:13 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit