Skip to content

yasszu/go-jwt-auth

Repository files navigation

JWT Server

Libraries

Getting Started

Run Server

  1. Run containers

    make run
  2. Run tests

    make test
  3. Stop containers

    make stop

API

POST /signup

curl --location --request POST 'localhost:8888/signup' \
--form 'email=test@sample.com' \
--form 'password=test12345' \
--form 'username=user1'

POST /login

curl --location --request POST 'localhost:8888/login' \
--form 'email=test@sample.com' \
--form 'password=test12345'

POST /v1/me

curl --location --request GET 'localhost:8888/v1/me' \
--header "Authorization: Bearer $JWT_TOKEN"

Releases

No releases published

Packages

No packages published