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.
Seamless integration adapted to your needs
Organizations & Teams
Manage B2B customers with orgs & teams, protecting content and limiting access to resources.
Permissions & RBAC
Control what users can do with flexible roles and detailed permissions for fine-grained access control.
Third-party OAuth
Connect with third-party services using our OAuth implementation for seamless integration.
Login to your account
Enter your email and password to continue
Wide range of features
for all kinds of apps
Password-less
Implement secure authentication without passwords using email magic links or SMS verification codes.
Multi-factor Auth (MFA)
Add an extra layer of security with time-based one-time passwords (TOTP) or SMS verification.
Transactional emails
Send beautiful, responsive emails for verification, password reset, and other important notifications.
User impersonation
Support users effectively by seeing what they see, without compromising security.
JWT API tokens
Create secure, stateless authentication tokens for your API with customizable expiration and claims.
No API calls needed
Access user data directly from your database without additional API calls, improving performance.
And many more new features every week.
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!"})
});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
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.
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
Product at TTiledesk
"We needed a solution that could handle complex B2B scenarios with teams and permissions. Stack Auth delivered perfectly."
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
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
Lead Engineer at MLTools