Stack Auth Logo
import  { signIn }  from "@stack-auth/react";

function LoginButton() {
return <button onClick={() => signIn()}>Login</button>
}

Auth can be good.

Stack Auth provides an open-source way to connect your users to your product. Fast, secure, and easy to implement.

Y Combinator LogoY Combinator W24|GitHub Logo10k+ GitHub stars

Seamless integration adapted to your needs

Organizations & Teams

Manage B2B customers with orgs & teams, protecting content and limiting access to resources.

Organizations & Teams

Permissions & RBAC

Control what users can do with flexible roles and detailed permissions for fine-grained access control.

Permissions & RBAC

Third-party OAuth

Connect with third-party services using our OAuth implementation for seamless integration.

Third-party OAuth

Login to your account

Enter your email and password to continue

or

Wide range of features
for all kinds of apps

Password-less

Implement secure authentication without passwords using email magic links or SMS verification codes.

Password-less

Multi-factor Auth (MFA)

Add an extra layer of security with time-based one-time passwords (TOTP) or SMS verification.

Multi-factor Auth

Transactional emails

Send beautiful, responsive emails for verification, password reset, and other important notifications.

Transactional emails

User impersonation

Support users effectively by seeing what they see, without compromising security.

User 1User 2User 3

JWT API tokens

Create secure, stateless authentication tokens for your API with customizable expiration and claims.

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

No API calls needed

Access user data directly from your database without additional API calls, improving performance.

No API calls needed

And many more new features every week.

Integration background

Beautiful Next.js integration

Experience how Stack Auth integrates seamlessly with Next.js, providing a smooth authentication flow for your applications.

Simple integration code

import  { auth }  from "@stack-auth/nextjs";

export const GET = auth((req) => {
return Response.json({message: "Hello, authenticated user!"})
});
Integration shine
Integration component
Integration component
Stack Auth Logo

is made with love

Don't just take our word for it. Here's what developers and companies that use Stack Auth have to say.

"Stack Auth has been a game-changer for our authentication needs. The integration was seamless and our users love the experience."

Guillermo Rauch testimonial

Guillermo Rauch

Founder & CEO at Vercel

"We switched from a custom auth solution to Stack Auth and couldn't be happier. It's flexible, secure, and the documentation is excellent."

Stephan S. testimonial

Stephan S.

CEO at anomys

"The team behind Stack Auth is incredibly responsive. Any time we've had questions, they've been quick to help us out."

Nicola Lanzilotto testimonial

Nicola Lanzilotto

Product at TTiledesk

"We needed a solution that could handle complex B2B scenarios with teams and permissions. Stack Auth delivered perfectly."

Jack Mark testimonial

Jack Mark

Founder at EdTech Leaders

"Thank you Stack Auth for making authentication so easy! Your product saved us months of development time."

Ken Taylor testimonial

Ken Taylor

Senior Developer

"The open-source nature of Stack Auth gives us confidence that we won't be locked into a proprietary solution. It's the future of auth."

Julia testimonial

Julia

Lead Engineer at MLTools

Start building with
Stack Auth, today

Decorative line