Skip to content

Implementing a basic JWS authentication demo with a symmetric secret based on Next.js 13, Prisma, Vercel Postgres.

Notifications You must be signed in to change notification settings

ttpss930141011/nextjs-13-JWT-authentication

Repository files navigation


nextjs-13-JWT-authentication

React ESLint TypeScript Prisma Markdown JSON

GitHub top language GitHub code size in bytes GitHub commit activity GitHub license

English Readme | 繁體中文 Readme


📍 Overview

This project helps me quickly familiarize and review middleware in Next.js 13, JWS and others JWT-related RFCs in jose, basic concepts in prisma, and usage of Vercel Postgre.


🚀 Getting Started

🖥 Installation

  1. Clone the nextjs-13-JWT-authentication repository:
git clone https://github.com/ttpss930141011/nextjs-13-JWT-authentication
  1. Change to the project directory:
cd nextjs-13-JWT-authentication
  1. Install the dependencies:
npm install

🤖 Using nextjs-13-JWT-authentication

Development

npm run dev

Production

npm run prod

Deployment

  • Deploy project on Vercel by clicking the following buttom.
    Powered by Vercel

  • Create a Vercel Postgre database in here.

  • Vercel Postgre connects to Vercel project. It will add env variables automatically.

Vercel Postgre env

- Done!

📄 License

This project is licensed under the MIT License. See the LICENSE file for additional info.

About

Implementing a basic JWS authentication demo with a symmetric secret based on Next.js 13, Prisma, Vercel Postgres.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published