feat: implement magic link sign in (#5036)

This commit is contained in:
Lucas.Xu
2024-04-11 16:33:28 +08:00
committed by GitHub
parent b7b4ea2da1
commit 1597f7d94c
81 changed files with 599 additions and 473 deletions

View File

@ -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.