andriajah Mon Oct 2022 2 years ago

Jwt Authentication In Go (gin/gorm)

In this video we'll create a JWT (json web token) authentication system in Go lang using Gorm, Gin, bcrypt, and jwt-go.

0:00 - Install Packages
2:50 - Hello World
3:48 - Dotenv setup
5:04 - Setup Gin
5:32 - Connecting to a database
8:18 - The user model
11:08 - Signup
17:38 - Login
26:58 - Auth Middleware

GORM - https://gorm.io/
Gin - https://gin-gonic.com/
Dotenv - https://github.com/joho/godotenv
Bcrypt - https://pkg.go.dev/golang.org/x/crypto/bcrypt
JWT-Go - https://github.com/golang-jwt/jwt
Compile Daemon - https://github.com/githubnemo/CompileDaemon

Like and subscribe!