refactor: remove hacky email login (#4075)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Peng Xiao
2023-09-01 01:49:22 +08:00
committed by GitHub
parent f99a7a5ecd
commit a2e4ef904b
13 changed files with 78 additions and 153 deletions

View File

@@ -266,9 +266,9 @@ export interface WorkspaceEvents {
}
export interface UIEvents {
onStartLogin: (fn: (options: { email: string }) => void) => () => void;
onStartLogin: (fn: (options: { email?: string }) => void) => () => void;
onFinishLogin: (
fn: (result: { success: boolean; email: string }) => void
fn: (result: { success: boolean; email?: string }) => void
) => () => void;
}