Skip to content

tkc/go-jwt-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-jwt-auth

TDOO

  • nonce
  • kid

Login Request

curl -X POST localhost:5555/login -d "username=test&password=password"
{
   "access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZSwiZXhwIjoxNTk1NjYxNDQwLCJuYW1lIjoiU2FtcGxlIE5hbWUiLCJzdWIiOjF9.5RGP9pnlpZ1EGMLYeyOaVGalHcbkP6zPdvR32GljKk4",
   "refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTU3NDY5NDAsInN1YiI6MX0.dowmE8JsDVCX1zBdILigGiA2CdUaeUWoGOFXBKiCKbQ"
}

RefreshToken Request

curl -X POST localhost:5555/token -H "Content-Type: application/json" -d '{"refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTU3NTAwNTAsInN1YiI6MX0.1DK_UCrXXbFIy2kvcXsN_kKsBszFoFgor7fhXSq3CbM"}'

Releases

No releases published

Packages

No packages published

Languages