Need advice on integrating authentication with a third-party dashboard
11:43 12 Oct 2026

Company A hired me to build their company profile website plus a login page. They’re partnered with Company B, and the idea is that users log in on Company A’s site and then get into Company B’s dashboard.

I’ve done auth before and used NextAuth.js on past projects. I’m planning on Clerk for this one. But I’ve never built this kind of cross-company integration and I’m not sure where to start. I was originally hired for frontend work so this wasn’t in the original scope. Due to some circumstances, I must agreed to take it on and now I’d really like to avoid building a complicated auth system from scratch.

I have a meeting with Company B’s team scheduled and here’s what I’m trying to figure out:

  1. How does this kind of integration usually work? What are the common approaches, and what does the login flow look like?

  2. Which technologies or protocols should I be looking at? Can I stick with NextAuth.js or Clerk, or do I need something else?

  3. What should I ask Company B’s tech team? What docs, credentials, or infrastructure access will I need from them?

  4. What should I pin down before I commit? I’m thinking scope, who’s responsible for what, security requirements, and any limitations.

  5. What’s the simplest way to pull this off? I’d like to keep the backend work to a minimum.

I’m happy to learn something new if I have to, but I’d rather stick with tools I already know. What I really want is to walk into that meeting knowing what Company B needs to provide, and to come out with the simplest safest plan.

Thanks, any advice or pointers would be a huge help!

advice authentication jwt single-sign-on federated-identity