stack/packages/template
CactusBlue f07e45fe26
Prevent handler from loading in <iframe> (#433)
* initial work

* fixed generate from template watch mode

* add the iframe preventer

* Update packages/template/src/components/iframe-preventer.tsx

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* Update packages/template/src/components/iframe-preventer.tsx

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* fixed codegen loop

* Fix codegen (#434)

* Fix errors

* "More sign-in methods available later" info

* Fix loading button indicator positioning

* remove trailing slash for NEXT_PUBLIC_STACK_URL (#432)

* make requested changes

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-12 13:34:03 -08:00
..
scripts Fix how URL concatenation works (#419) 2025-02-11 14:23:56 -08:00
src Prevent handler from loading in <iframe> (#433) 2025-02-12 13:34:03 -08:00
.env Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
.eslintrc.cjs Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
.gitignore Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
CHANGELOG.md chore: update package versions 2025-02-12 10:35:56 -08:00
components.json Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
LICENSE Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
next-env.d.ts Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
package-template.json Update package-template.json 2025-02-12 11:02:34 -08:00
package.json chore: update package versions 2025-02-12 10:35:56 -08:00
postcss.config.js Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
quetzal.config.json Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
README.md Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
tailwind.config.js Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
tsconfig.json Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
tsup.config.ts Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00

Stack Auth: Open-source Clerk/Auth0 alternative

📘 Docs | ☁️ Hosted Version | Demo | 🎮 Discord | GitHub

Stack Auth is a managed user authentication solution. It is developer-friendly and fully open-source (licensed under MIT and AGPL).

Stack gets you started in just five minutes, after which you'll be ready to use all of its features as you grow your project. Our managed service is completely optional and you can export your user data and self-host, for free, at any time.

We support Next.js frontends, along with any backend that can use our REST API. Check out our setup guide to get started.

📦 Installation & Setup

  1. Run Stacks installation wizard with the following command:
    npx @stackframe/init-stack@latest
    
  2. Then, create an account on the Stack Auth dashboard, create a new project with an API key, and copy its environment variables into the .env.local file of your Next.js project:
    NEXT_PUBLIC_STACK_PROJECT_ID=<your-project-id>
    NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=<your-publishable-client-key>
    STACK_SECRET_SERVER_KEY=<your-secret-server-key>
    
  3. That's it! You can run your app with npm run dev and go to http://localhost:3000/handler/signup to see the sign-up page. You can also check out the account settings page at http://localhost:3000/handler/account-settings.

Check out the documentation for a more detailed guide.