I was wondering if someone has a smart solution for my problem 🙂
I am working on a project where a customer works at different companies. The customer creates an account at my app for Company1, completes his profile settings and wants to add his second account for Company2 to the same profile account as Company1. Both with OAUTH.
I can create a table in between as relation table from User Account to Profile, but i still have an issue. Everything the customer does when he is logged in as Company1 its documents will be created with his current userId. When he logs in as Company2 then he no longer has permission to edit them.
Does someone has a smart solution that i didnt think of?