-
Notifications
You must be signed in to change notification settings - Fork 577
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
Align sync auth with other SDKs #1579
Comments
This could be related: #1571 |
This is a good discussion to have since I think we should simplify the auth to just:
I think just having 1 method like |
I'm not sure about that - if the goal is to allow people to bootstrap quickly, the JWT flow isn't exactly ideal. It requires writing code to issue my own tokens and hosting this on another service. If I already have that in place, great, but if I don't, it's fairly annoying. |
@bigfish24 I would assume that Facebook and Google auth are important in a React Native context? @nirinchev Will |
What would |
I agree that we shouldn't duplicate effort (#1571). |
I close this as #2002 has been merged and released. |
The current auth API is hard to new users to understand and use. I suggest that Realm JS is aligned with the other Realm SDKs.
registerWithProvider
,login
) are deprecated and to be removed as soon as possible.Realm.Sync.Credentials
is added. It will interface supported 3rd party provides, e.g., JWT, Google and Facebook.Realm.Sync.User
.An example:
The text was updated successfully, but these errors were encountered: