✍️Update Profile

1. Create Session Token :

First Step When Customer Click On Update You Have To Initialize Session First By Creating Session Token Using The Following API :

UpdateSteps you Select Which Steps To Update Only These Steps Will Be Allowed To Update In This Session For This User. If You Wich To Allow All Leave This Array Empty

// Available Steps are
        NationalID = 1,   
        Passport = 2,
        Phone = 3,
        Email = 4,
        Device = 5,      
        Location = 6,        
        SecurityQuestions = 7,
        Password = 8

2. Import eNROLL JS File in index.html :

<script src="eNROLL.min.js"></script>

3. Add Div Element With Specifying Id For This Div

<div id="myDiv">
</div>

4. Initialize eNroll Component Any Where In Your JS File After Document Is Loaded:

eNROLL.init({
   elementId:"myDiv", // The Id We Set Before For Our Div
   url:"{{environment.url}}", // this parameter is sent to you by email after acceptiong your org 
   sessionId://Token We Got In Step 1 From The API,
   mode:"reEnroll" | "update",
        //rEnroll : User Will Update All Profile 
        //update : User  Will Select What to Update
   onExit:()=>{
     // define What Happen When User Exit From eNROLL Plugin
  }
});

Last updated