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;
this.flagStatus = FlagStatus.FETCH_REQUIRED;
this._fetchReasons = FetchFlagsRequiredStatusReason.VISITOR_AUTHENTICATED;
_isAuthenticated = true;
_visitorDelegate.getStrategy().authenticateVisitor(visitorId);
}