Skip to content

MoAlkhateeb/go-api-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Basic JWT Auth Implementation in Golang

This is a basic implementation of JWT authentication in Golang. It uses the github.com/golang-jwt/jwt/v5 library for JWT token generation and validation.

.env setup:

PUBLIC_HOST=localhost
PORT=8080
DB_NAME=app.db
JWT_EXP=604800
JWT_SECRET=secret

To Run Tests:

make test

To Run the Server:

make run

About

A starter Go backend with JWT Auth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published