Replit Auth Improvements- Grouped Account based users & ability to switch users & Branding

Added Auth for a new app we’re building which is an account-based b2b saas. Easy to add, no doubt but its painfully obvious replit auth is built primarily for consumer apps.

We needed a streamlined flow for adding a user to a given account, e.g. a new employee gets added to a CRM, we need to associate that user with the company that invited them.

we found a workaround, but this should be something considered, e.g. affiliation for a given user should be inbuilt.

Additionally, during testing, the replit auth cookies are sticky and stay around even in new tabs/windows on incognito mode. This makes testing extremely difficult, especially because we can’t change users or log out of the replit context from the built in replit auth window.

Last request- remove/ let us change the auth powered by replit. This is fine as the baseline, but we should not expose anything about how the underlying system is built in our case.

1 Like
  1. these are all reasons why I won’t touch Replit’s auth. Supabase is my preferred for auth - design your own workflows, and make it look like what you want

  2. cookies - a perennial problem when testing any system. It’s why I have 3 browsers: Edge for all my build platforms and own accounts, and then Safari and Firefox for my test users