Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications: Handle logout/login #1707

Open
Tracked by #2247
danieldaquino opened this issue Nov 13, 2023 · 3 comments
Open
Tracked by #2247

Push notifications: Handle logout/login #1707

danieldaquino opened this issue Nov 13, 2023 · 3 comments

Comments

@danieldaquino
Copy link
Contributor

Acceptance criteria:

  • If the user logs out of their Nostr account, they should stop receiving push notifications from that account
  • If the user logs into a new Nostr account, the push notification server should start sending that user notifications of that new account
@jb55
Copy link
Collaborator

jb55 commented Nov 13, 2023 via email

@danieldaquino
Copy link
Contributor Author

Wouldn't you still want push notifications regardless of which account
your logged into? We would just need account switching functionality so
that damus can switch to the appropriate account.

That would make sense if the user manages more than one account at the same time.

I was imagining use-cases where the user temporarily logs into their account on their friend's or family member's device, or someone who created an account but wants to switch to a new one (and "abandon" the old one).

Besides, I imagine that some of the other push notification functionality (e.g. decryption of DMs in push notifications) would only work for the user that is logged in.

However, you pointed out a useful use case. I imagine this would be better managed if we have multi-user support (similar to how Google allows someone to login to multiple accounts from the same browser), because then the user can control whether they want to be logged into 2 accounts, or if they specifically want to logout of their account.

@jb55
Copy link
Collaborator

jb55 commented Nov 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants