mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: implement magic link sign in (#5036)
This commit is contained in:
@ -142,6 +142,9 @@ pub trait UserCloudService: Send + Sync + 'static {
|
||||
password: &str,
|
||||
) -> FutureResult<UserProfile, FlowyError>;
|
||||
|
||||
fn sign_in_with_magic_link(&self, email: &str, redirect_to: &str)
|
||||
-> FutureResult<(), FlowyError>;
|
||||
|
||||
/// When the user opens the OAuth URL, it redirects to the corresponding provider's OAuth web page.
|
||||
/// After the user is authenticated, the browser will open a deep link to the AppFlowy app (iOS, macOS, etc.),
|
||||
/// which will call [Client::sign_in_with_url]generate_sign_in_url_with_email to sign in.
|
||||
|
Reference in New Issue
Block a user