-
Notifications
You must be signed in to change notification settings - Fork 1
Add support for multiple accounts on the same connection #13
Conversation
nice feature @adriacidre ! I noticed that when we call For sure it works because when we use |
I see your point, so, every time you log in, you change your SelectedAccount. On the other hand SelectedAccount is not used on any ipc call from the SDK, and same security risks could be achieved with the current approach with:
I would say this is a concern to be tracked on the status-go side (as is a current existing problem). |
@adriacidre we actually call https://github.com/status-im/status-go/blob/develop/services/status/api.go#L40 I don't think it's a current existing problem because the node is used by just one user at a time, so maybe we should do the same in the sdk |
Yes, what i meant is this problem is already happening with the currently implemented SDK approach. Even if we want to avoid multiple account management or add support for it, its something that has to happen on status-go side, and not in here. |
Yeah I know, you are right. That's why maybe it's better not to allow users to have multiple accounts in the sdk since it won't be implemented in |
@pilu It's actually something required by Push Notifications V2 |
@adriacidre I understand, shall we then change the status service not to inject the whisper identity when used as an external API? |
A proper research / development should be done on the push notifications side, i'll expose the problem to @pombeirp on our weekly call today :) |
@adriacidre nice! I'm just worried about security, but the code here makes sense! |
Sure, i'll merge it if you don't mind. As this really improves code readability. BTW I'll keep you informed about this as soon as i have some more info :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This is basically adding a new layer between connection and channel, so we can support multiple accounts over the same connection like: