Inter-Process Communication
Last updated
Was this helpful?
Was this helpful?
async function sendSignInEvent() {
let make_payload = () =>
SignInPayloadPB.fromObject({
email: nanoid(4) + "@gmail.com",
password: "A!@123abc",
name: "abc",
});
await UserEventSignIn(make_payload());
} let listener = await new UserNotificationListener({
onUserSignIn: (userProfile) => {
console.log(userProfile);
},
onProfileUpdate(userProfile) {
console.log(userProfile);
// stop listening the changes
// listener.stop();
}}
);
listener.start();