@Chris thanks for sharing the code! That makes it super clear. Would love to hear from @dthyresson and others if they consider this good practice.
Chris, with regards to redirecting to the pickTeamPage. How is that handled when a user has a team picked already? or is this more like team selector page? so if it’s teams are empty they can create their first team from this screen, but if they have a team, they can select it and proceed to the application?
So does that mean you have the team slug or name, in all your URLs? such as /{teamSlug}/dashboard/ or do you use cookie and store the current selected team?
Edit
Here is how I implemented so far. Wanted to leave a gist so it’s useful for others.