Skip to content

7kaji/jwt-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwt-qrcode

run

$ go run main.go

generate QR code (JWT)

$ curl -s \
       -X POST \
       -H "Content-Type: application/json" \
       -d '{"item_code":"ITEM123", "price":100, "amount":2}' \
        http://localhost:8080/generate_qr > output.png

verify jwt

$ curl -s \
       -X POST \
       -H "Authorization: Bearer [Your_JWT_Token_Here]" \
        http://localhost:8080/verify_token |jq .
{
  "message": "Successfully authenticated!"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages