Cookies and localstorage gets clear after closing app

I have created a Zoom app in React. Why do cookies and local storage values get clear after we close the app? I want to manage the user login state. But as cookies and local storage data do not persist, every time the user has to log in. Is this development-only behavior?? or Zoom browser get destroyed after we close the app, which results in this issue?