You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm stuck trying to fix authentication with a stale client. I've attempted to mitigate this by calling db.cloud.login() as well as db.cloud.sync(); however, both result in the same logs seen below. The same logs also appear on page refresh / load.
I am able to successfully start a new session in an incognito tab; however, in an existing browser instance I never am asked to re-auth and am instead stuck with this sync state: {phase: 'offline', status: 'offline', license: 'expired'}.
Likewise, after a fresh logout -> login, I immediately start to get expired license logs.
It sounds as if the evaluation period of the user you are logging in as is expired. Login to https://manager.dexie.cloud and find the user you are logging in to. See if it has the orange eval pill along with an upgrade link. Click the upgrade link and the user will get a production license.
The free version allows upgrading up to 3 users to production. You can also purchase a subscription and give production access to upgrading more users.
NOTE: Expired users can always login and pull down all data but it will fail to sync if they change and try to upload any data. Your application can advertise to your users when their evaluation is about to expire or has expired to contact you to get a production license. An example of that can be found in this code snippet
Thanks @dfahlander that was the issue! Thanks for the code reference.
Some thoughts:
Is there a place in the documentation for this? If not, perhaps it could live on the authentication or access control pages?
I'm a bit embarrassed to admit that I didn't know https://manager.dexie.cloud/ existed. I looked for a web admin site, but I could never find any reference to one. It might've been useful if the CLI outputted links to the manager app?
I'm stuck trying to fix authentication with a stale client. I've attempted to mitigate this by calling
db.cloud.login()
as well asdb.cloud.sync()
; however, both result in the same logs seen below. The same logs also appear on page refresh / load.I am able to successfully start a new session in an incognito tab; however, in an existing browser instance I never am asked to re-auth and am instead stuck with this sync state:
{phase: 'offline', status: 'offline', license: 'expired'}
.Likewise, after a fresh logout -> login, I immediately start to get expired license logs.
Any ideas on what could help mitigate?
The text was updated successfully, but these errors were encountered: