If you ever have a case where you don't need user to fill in their login form manually. You can bypass this step by setting up a localStorage with a key of `qismo-widget`.
Here's how you can do it.
- Create a new localStorage with a key of `qismo-widget`
- The value of the localStorage item needs to have values of `user_id` and `user_name`
- Refer to this sample code:
-
localStorage.setItem('qismo-widget', JSON.stringify({user_id:'', user_name: ''}))
- Put the code above just before Qiscus Widget Initialization code.