Skip to content

User gets logged out of Firebase too frequently #37

@tedchwang

Description

@tedchwang

Describe the bug
After a user logs in to mipa, she would lose authentication after one hour. This happens even with constant interaction with the app. The lose of authentication is only noticed when a write to Firestore fails (the write to local Firestore cache still works).

To Reproduce
Steps to reproduce the behavior:

  1. Log in to mipa and go to a model.
  2. Wait for 60 minutes.
  3. From a model node, Add new influencer, and enter a name for it.
  4. See that the new node is added but the link is not created.
  5. Refresh the page and get redirected to the login page.

Expected behavior
I expect that adding a new influencer would complete successfully, or let me know as soon as I'm logged out of Firebase (assuming that's the problem).

Screenshots
In the screenshot below, we see a node (the orange one) that was supposed to be added as an influencer to another, yet the link is not created after the node is created.
node not linked

In another case, the link is added but the new node's color did not change from orange to green.
node class not changed

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 86

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions