Skip to content
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

Merged
merged 10 commits into from
Sep 16, 2020
Merged

Add retry custom confirmation logic #7079

merged 10 commits into from
Sep 16, 2020

Conversation

clementetb
Copy link
Collaborator

@clementetb clementetb commented Sep 3, 2020

This PR request allows the users to call a custom confirmation function to validate their registration.

@clementetb clementetb marked this pull request as ready for review September 3, 2020 14:56
Copy link
Contributor

@rorbech rorbech left a 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.

* @param email the email of the user.
* @throws AppException if the server failed to confirm the user.
*/
public void callCustomConfirmationFunction(String email) throws AppException {
Copy link
Contributor

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?

@clementetb
Copy link
Collaborator Author

I have modified the integration test cases as they were not actually calling the custom confirmation function.

@cmelchior
Copy link
Contributor

cmelchior commented Sep 14, 2020

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
@cmelchior
Copy link
Contributor

PR has been brought up to date. Merging.

@cmelchior cmelchior merged commit d150f48 into v10 Sep 16, 2020
@cmelchior cmelchior deleted the ct/custom-confirm-call branch September 16, 2020 12:18
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants