- Notifications
You must be signed in to change notification settings - Fork1
rajeshberwal/nextjs-jwt-auth-middleware
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a boilerplate that containes code for setting auth on Next.js app with the help of middleware.
First, run the development server:
npm run dev# oryarn devOpenhttp://localhost:3000 with your browser to see the result.
You can start editing the page by modifyingpages/index.tsx. The page auto-updates as you edit the file.
Login API endpoint can be edited inpages/api/auth/login.ts.
Thepages/api directory is mapped to/api/*. Files in this directory are treated asAPI routes instead of React pages.
About
A boilerplate that containes code for setting auth on Next.js app with the help of middleware.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published