Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

next.js authorization example including private route protection. WARNING - This is probably not a great reference in 2023 and beyond, consider using next-auth.

License

Notifications You must be signed in to change notification settings

jasonraimondi/nextjs-jwt-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

!                                                                      
! WARNING - This is probably not a great reference in 2023 and beyond. 
!           This example uses a version of Next.js from 2021. A great  
!           auth library for next-js is https://next-auth.js.org/      
!                                                                      

Next.js authorization example including private route protection

https://jasonraimondi.com/posts/create-a-secured-rest-api-for-a-next-js-application-using-jwt-and-golang/

git clone git@github.com:jasonraimondi/nextjs-jwt-example.git
cd nextjs-jwt-example
go run ./api/main.go

   ____    __
  / __/___/ /  ___
 / _// __/ _ \/ _ \
/___/\__/_//_/\___/ v3.3.10-dev
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
                                    O\
⇨ http server started on [::]:1323
cd web
npm run dev

About

next.js authorization example including private route protection. WARNING - This is probably not a great reference in 2023 and beyond, consider using next-auth.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published