Skip to content

A basic project made in Go to show how JWT authentication can be implemented in the language

Notifications You must be signed in to change notification settings

sredxny/golang-JWT-Auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

golang-JWT-Auth

A basic project made in Go to show how JWT authentication can be implemented in the language

Installation steps

  • Clone repo
  • Step into project directory and execute: go get ./...
  • go run main.go

Usage

SignIn and get a new JWT token

Endpoint: POST http://localhost:8000/signin Payload: {"username":"user1","password":"password1"}

Access Protected route

Endpoint: GET http://localhost:8000/welcome

Renew token

Endpoint: POST http://localhost:8000/refresh

About

A basic project made in Go to show how JWT authentication can be implemented in the language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages