Skip to content
next.js authorization example including private route protection
TypeScript Go
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Add intellij files. Aug 6, 2019
api Add golang echo framework with jwt Aug 6, 2019
web Extract rest calls pre render on index/dashboard, add error handling. Aug 6, 2019
.gitignore Add gitignore for JetBrains and Golang base. Aug 6, 2019
LICENSE Initial commit. Aug 2, 2019
README.md
go.mod Add "loginToApi" endpoint that uses axios to talk to server. Aug 6, 2019
go.sum Add "loginToApi" endpoint that uses axios to talk to server. Aug 6, 2019

README.md

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
You can’t perform that action at this time.