Skip to content

Go REST API with JWT(JSON Web Token) Authentication in Gin Framework

Notifications You must be signed in to change notification settings

sunny0714/jwt-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go REST API with JWT(JSON Web Token) Authentication in Gin Framework

Necessary Go package list

  • gin framework: go get -u github.com/gin-gonic/gin
  • ORM library: go get -u gorm.io/gorm
  • to authenticate and generate our JWT: go get -u github.com/golang-jwt/jwt/v4
  • to help manage our environment variables: go get -u github.com/joho/godotenv
  • to encrypt our user's password: go get -u golang.org/x/crypto
  • to use mysql: go get -u gorm.io/driver/mysql

About

Go REST API with JWT(JSON Web Token) Authentication in Gin Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages