-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
@@ -228,6 +228,29 @@ void App::UsernamePasswordProviderClient::resend_confirmation_email(const std::s | |||
}, handler); | |||
} | |||
|
|||
void App::UsernamePasswordProviderClient::retry_custom_confirmation(const std::string& email, |
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.
Is this the correct function name? Maybe I'm misunderstanding, but it seems like call_custom_confirmation_function
might be a bit clearer.
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.
Sounds like we need to agree on how to expose this to users 😅 realm/realm-java#7079 (comment)
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.
By popular vote, we agreed on retry_custom_confirmation
src/sync/app.hpp
Outdated
/// Calls the custom confirmation function on a user for a given email. | ||
/// @param email The email address of the user to call the custom confirmation for. | ||
/// @param completion_block A callback to be invoked once the call is complete. | ||
void call_custom_confirmation_function(const std::string& email, |
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.
Is there no way to test this in ObjectStore?
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.
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.
Have added test cases for the custom confirmation function, following the same pattern as call_reset_password_function
.
Add support for calling the custom confirmation function from the SDKs