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.
Curious about how to use the Next SDK on your existing application?
Read the quickstart instructions on Userfront.
- Node.js v18 or later
- Have or create a Userfront account at https://userfront.com/
- Install dependencies
npm install
- Copy
.env.example
into a file called.env.local
cp .env.example .env.local
- Have the following set as environment variables in
.env.local
:- USERFRONT_JWT_PUBLIC_KEY (Can be found at https://userfront.com/dashboard/jwt?tab=public )
- NEXT_PUBLIC_USERFRONT_WORKSPACE_ID (Can be found at https://userfront.com/dashboard )
- Run the development server
npm run dev
- Visit http://localhost:3000
Need some help? We're always here and happy to help. Please do not hesitate to contact support.