Authentication Logout Trigger
Leon Machens
Hi, I am trying to show the online status of a user in my app.
A collection called
users
contains additional profile fields and the online status like online
, away
or offline
.With the create trigger I am able to create a new user. With
login
tigger I could set the status to online (not necessary, because I could set it in from the app too). away
is set by the app.But
offline
is more difficult to set. If the user closes the app, I can listen to a close event and update the status to offline
. But if the app crashes or the user has no internet connection, I can not update the status.My idea is to add a Authentication Logout trigger. But maybe you have a better idea?
Thanks
Drew DiPalma
Hi Folks!
As part of our upcoming re-brand of "Stitch" to "Realm" we'll also be migrating our feedback forum and joining the rest of MongoDB at feedback.mongodb.com – as part of that transition, we'll be shutting down this forum. We're still keeping track of this feedback and all of the related comments/discussions, but have only migrated feedback with 5+ votes at this time. If you would like us to continue to track this item in the new forum please let us know.