-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add retry custom confirmation logic #7079
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See questions in comments.
realm/realm-library/src/objectServer/java/io/realm/mongodb/auth/EmailPasswordAuth.java
Show resolved
Hide resolved
realm/realm-library/src/objectServer/java/io/realm/mongodb/auth/EmailPasswordAuth.java
Show resolved
Hide resolved
* @param email the email of the user. | ||
* @throws AppException if the server failed to confirm the user. | ||
*/ | ||
public void callCustomConfirmationFunction(String email) throws AppException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make sure we call this method the same across SDK's. Right now it doesn't seem to be documented on the website (most likely because the old SDK did not have it).
Especially since it is described as rerunning the registration. This makes me wonder if we should rename this to rerunCustomConfirmationFunction
since it already ran once when registering and reword the javadoc appropriately?
I have modified the integration test cases as they were not actually calling the custom confirmation function. |
Unfortunately, this was merged in ObjectStore after the multiple app changes. After this we can bump this PR to the correct OS version. App PR: #7095 |
# Conflicts: # CHANGELOG.md # realm/realm-library/src/main/cpp/object-store
PR has been brought up to date. Merging. |
This PR request allows the users to call a custom confirmation function to validate their registration.