Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-844

Don't keep checking whether the access token that was just fetched is already expired

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      https://github.com/realm/realm-js/issues/3985
      Likely what’s happening is that if the device time is more than 30 min in the future, it thinks its access token is expired, so it requests a new one. But that one will also (immediately) appear to be expired too, so it tries again, etc. in an infinite loop. 
      To mitigate this, the client could check if the newly minted access token is already expired. If it is, then likely there's an unrecoverable issue.
       

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: