Skip to content

userfront/next-js-sample-app

Repository files navigation

Userfront Next 14 Example

This is a Next.js project bootstrapped with create-next-app and using @userfront/next for auth. The app is ready to be deployed to Vercel.

Deploy with Vercel


Curious about how to use the Next SDK on your existing application?

Read the quickstart instructions on Userfront.

Read the guide on Userfront.

Requirements

  • Node.js v18 or later

Prerequisites

  1. Have or create a Userfront account at https://userfront.com/
  2. Install dependencies

    npm install

  3. Copy .env.example into a file called .env.local

    cp .env.example .env.local

  4. Have the following set as environment variables in .env.local:
    1. USERFRONT_JWT_PUBLIC_KEY (Can be found at https://userfront.com/dashboard/jwt?tab=public )
    2. NEXT_PUBLIC_USERFRONT_WORKSPACE_ID (Can be found at https://userfront.com/dashboard )

Running the app

  1. Run the development server

    npm run dev

  2. Visit http://localhost:3000

Troubleshooting

Need some help? We're always here and happy to help. Please do not hesitate to contact support.

About

Sample app for userfront using nextjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published