Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 723 Bytes

README.md

File metadata and controls

42 lines (36 loc) · 723 Bytes

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"