authenticate method
Use authenticate methode to go from Logged-out session to logged-in session
- Parameters:
- visitorId: newVisitorId to authenticate
- Important: After using this method, you should use Flagship.fetchFlags method to update the visitor informations
- Requires: Make sure that the experience continuity option is enabled on the flagship platform before using this method
Implementation
authenticate(String visitorId) {
// Update flagSyncStatus
this._flagSyncStatus = FlagSyncStatus.AUTHENTICATED;
_isAuthenticated = true;
_visitorDelegate.getStrategy().authenticateVisitor(visitorId);
}