-
-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dexie Cloud feature request: in-app invitations #1987
Comments
At least proposed solution 1 could be implemented with generic data mutation web hooks:
The configuration could be done via CLI or Manager app. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shared realms is an excellent feature of Dexie cloud, but the e-mail-to-invite default behaviour isn't flexible enough for all use-cases. I've encountered two related issues:
Problem 1: If the developer is using custom auth, Dexie may not have e-mail addresses or those addresses may not be up-to-date with what the custom auth system knows.
Problem 2: Users who do not know each other well may not want to share their e-mail address, but still want to collaborate.
Current Solution: In the current system, both issues can be solved by e.g. the developer creating a backend endpoint that handles creating realms and adding users to it with whatever invitation infrastructure it wants to use. The problem with this solution is that a user can't hit that backend endpoint if the app is currently in offline mode.
I have two suggested solutions. Either or both could be implemented:
Proposed Solution 1: Add web hooks to Dexie cloud, such that Dexie calls out to an arbitrary HTTP endpoint provided by the webapp developer whenever an invite needs to be sent (this infrastructure could also be used for custom e-mails, as an alternative to sharing SMTP settings). This endpoint could receive the dexie-cloud ID and issue invitations however it sees fit. Options include forcibly adding them to the realm, sending an e-mail or SMS, or having the app developer implement solution 2 below.
Proposed Solution 2: In-app invitations
I think it's possible to make realm invitations work using just dexie-cloud sync without an external e-mail service. Here's how I imagine the flow:
The text was updated successfully, but these errors were encountered: