Unauthorized usage #1
visualjerk
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unauthorized usage 🔓
The app should be usable without log in. In order to sync data between different devices / browsers, a user can log in.
Right now we are using Option B.
Option A - LocalStorage
We could use localStorage for unauthorized users. This is a challenge, as localStorage does not play well with our current architecture (TRPC / Prisma). The prefered option would be a Prisma-like solution for client side storage.
Maybe use localForage for this?
Option B - Same DB, but different auth method
We could create our own token for unauthorized users.
Option C - Offline first DB (rxdb)
We could opt for an offline first approach with a solution like rxdb. This however would mean to rework the whole architecture, as it does not allow relational data.
Beta Was this translation helpful? Give feedback.
All reactions