File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { resetIgnoreAuthCallback } from "../firebase";
2121import { ValidatedHtmlInputElement } from "../elements/input-validation" ;
2222import { UserNameSchema } from "@monkeytype/schemas/users" ;
2323import { remoteValidation } from "../utils/remote-validation" ;
24+ import { authEvent } from "../events/auth" ;
2425
2526let signedInUser : UserCredential | undefined = undefined ;
2627
@@ -109,6 +110,11 @@ async function apply(): Promise<void> {
109110 showSuccessNotification ( "Account created" ) ;
110111 await AccountController . loadUser ( signedInUser . user ) ;
111112
113+ authEvent . dispatch ( {
114+ type : "authStateChanged" ,
115+ data : { isUserSignedIn : true , loadPromise : Promise . resolve ( ) } ,
116+ } ) ;
117+
112118 signedInUser = undefined ;
113119 hideLoaderBar ( ) ;
114120 void hide ( ) ;
You can’t perform that action at this time.
0 commit comments