Skip to content

Nouhack/jwt-facebook-authentication

Repository files navigation

About jwt-facebook-authentication Project

This project is a json web token Authentication implementation for Next.js app using nextAuth solution for Credentials authentication

ScreenShots

login page:

main page:

error page:

loading page:

session page:

Getting Started

First, run

npm install # to install all dependencies including nextAuth

then, rename

.env.local.example
# to
.env.local

then, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Authentication can be modified on /pages/api/auth/[...nextauth].js file to add more providers beside credintial , GITHUB provider TWITTER provider .... or customise your own setting by adding options

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More next.js

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Learn More next-auth

To learn more about next-auth.js, take a look at the following resources:

You can check out the Next-Auth.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

This project is a json web token Authentication implementation for Next.js app using nextAuth solution for Credentials authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published