When I subscribe to the user table like so:
const query = new Parse.Query("User");
query.equalTo("userId", payloadRef.current.userId);
const subscription = await query.subscribe();
subscription.on("open", () => {
console.log("opened");
})
subscription.on("update", () => {
console.log("updated");
});
the open event get fired, but the update event doesn’t.
I was expecting the update event to fire when the emailVerified attribute of the user changes to true.
Is that a bug or expected behavior?
I needed this feature to automatically redirect the user after email verification.
Any suggestions?
Thank you,