Registering for TOTP
š Automatic TOTP Registration Flow
ā
When Does It Happen?
- Immediately after successful login, the REL-ID SDK automatically checks and attempts to register the user for TOTP.
- This process is automaticāthe application does not need to manually invoke any API.
š§ What the SDK Does
- Detects that login has succeeded.
- Checks if:
- TOTP is supported for the user.
- The user is not already registered for TOTP on the current device.
- If registration is needed:
- SDK attempts to register the user silently in the background.
š© Event: onTOTPRegistrationStatus
onTOTPRegistrationStatusAfter attempting to register for TOTP, the SDK emits the onTOTPRegistrationStatus event to notify the application about the outcome.
š§āš» Developer Guidance
- ā If successful: No additional action is needed. User is now ready to generate TOTP.
- ā If failed:
- Log the error or show feedback to the user.
- Retry registration later or prompt user manually if TOTP is required.
This registration step ensures that TOTP functionality is set up seamlessly for secure authentication and offline scenarios.
Updated 9 months ago
