Skip to content

Commit 7ba6d48

Browse files
fix: login event props (#14)
* fix: login event props
1 parent 6fa2af8 commit 7ba6d48

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/messaging/incoming.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { TestBoxMessage } from ".";
2-
import { MessageSender } from "./types";
32

43
export const NAVIGATE = "navigate";
54
export const INITIALIZE = "initialize";
@@ -27,9 +26,11 @@ export type NavigateEvent = {
2726
export type NavigateMessage = TestBoxMessage<typeof NAVIGATE, NavigateEvent>;
2827

2928
export type LoginEvent = {
30-
username?: string;
29+
email: string;
3130
password?: string;
32-
totpCode?: string;
31+
totp_token?: string;
32+
first_name?: string;
33+
last_name?: string;
3334
};
3435

3536
export type LoginMessage = TestBoxMessage<typeof LOGIN, LoginEvent>;

0 commit comments

Comments
 (0)