New Authentication System
Credenza Passport offers a standalone login system that prioritizes simplicity by minimizing the required metadata. However, it allows for an extension of the registration process to capture additional information if needed.
This option is the simplest as it doesn't require the normalization of an existing database. It also provides an easy way to utilize Credenza Presence UI elements, though we recommend maintaining a separate store for additional metadata for CRM purposes.
If you're developing a new app but still want a customer login process, there's a straightforward path to achieving that. Once the application obtains the email address (either through a text box or inferred from a promotional email), the process can be initiated with the following call:
If you're using Presence visual elements, this call is integrated into the login dialog and automatically executes upon receiving a valid email.
For first-time registrants, the passport.on("UpdateProfile",...)
event is triggered. Therefore, if any additional metadata is required from the user, you can redirect accordingly.account page or create an interstitial page. For all subsequent logins for the user, onLogin is triggered.
Last updated