# Authentication information for our app is disappearing from cookies/localstorage

**URL:** <https://devforum.zoom.us/t/authentication-information-for-our-app-is-disappearing-from-cookies-localstorage/92900>\
**Category:** Zoom Apps\
**Created:** [August 3, 2023, 5:32pm UTC](https://devforum.zoom.us/t/authentication-information-for-our-app-is-disappearing-from-cookies-localstorage/92900 "2023-08-03T17:32:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nikhil2/32/36522_2.png) [@nikhil2](https://devforum.zoom.us/u/nikhil2)\
**Post date:** [August 3, 2023, 5:32pm UTC](https://devforum.zoom.us/t/authentication-information-for-our-app-is-disappearing-from-cookies-localstorage/92900/1 "2023-08-03T17:32:03Z")

</div>

My stack is a React frontend without a framework and a multi-framework/language backend. We use the zoom app sdk.

We have a weird behavior where localstorage is cleared. We require users to log in via our authentication system _in_ the zoom app, and we store session info in a cookie on the auth site and localstorage on the main zoom app site. After some time passes, localhost on the main zoom app site nor cookies on the auth site have authenticated user details.

It would be nice to know whether this is expected behavior or not, and if it is, what the specific rules are around keeping things in localstorage and cookies.

---

<div class="post-metadata">

**Author:** ![waqas.zafar](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@waqas.zafar](https://devforum.zoom.us/u/waqas.zafar)\
**Post date:** [August 10, 2023, 5:47am UTC](https://devforum.zoom.us/t/authentication-information-for-our-app-is-disappearing-from-cookies-localstorage/92900/2 "2023-08-10T05:47:24Z")

</div>

Hi nik,

I am facing similar situation. Here is the link of my ticket.

> [@Local Storage sync issue](https://devforum.zoom.us/t/local-storage-sync-issue/92926):
>
> In our Zoom app, we have a login form where users can log in, and upon successful login, we store the refresh token in the local storage. This refresh token is utilized to obtain new access tokens for making API calls to our system when necessary, such as upon a page refresh or after a certain time period. However, a problem arises when we start a meeting. The access token that was saved in the main context during the login process does not synchronize with the in-meeting client. As a result, w…
