Closed elitan closed 3 years ago
We’ve decided to only fix bugs and refactors on Hasura Backend Plus from now on because we’re working on a new auth + storage service for Hasura. Currently, these new repositories are private but will be open-sourced soon.

We’ll have your issue in mind when developing the new services. So thanks for filing this issue

This means I’ll close this issue for now.
Users are logging in and refreshing tokens.
When this happens, we could update a new column
auth.accounts.last_seen
withnow()
and have a computed columnauth.accounts.online
that is something like:GENERATED ALWAYS AS (now() - 20 minutes < last_seen) STORED
.https://www.postgresql.org/docs/12/ddl-generated-columns.html
This way, it's easy to query who's online or show online status like: