Not able to load nest products using different account


I have developed one iOS application and integrate nest camera using firebase sdk. When i login with one account then its working fine after that i logout from that account and login with different account in nest then Api give me objects or products of last nest account logged in. I have to delete my application to get objects or products of new nest account.

Can you please help me on this?


Authentication is token based and only tied to the account that completed the OAuth flow. Firebase is a singleton for the instance. If you’re going through the OAuth flow with a new account and getting a new token, but still logged in on the old account, its likely you’re not de-authenticating your previous instance.