req:
curl --location 'http://127.0.0.1:8000/signup/' \
--data-raw '{
"email": "[email protected]",
"password": "123"
}'
rsp:
{"userid":1,"email":"[email protected]"}
req:
curl --location 'http://127.0.0.1:8000/signin/' \
--data-raw '{
"email": "[email protected]",
"password": "123"
}'
rsp:
{"access_token": "xxxx", "refresh_token": "xxxx"}
req:
curl --location 'http://127.0.0.1:8000/me/' \
--header 'Authorization: Bearer <access_token_from_signin>'
rsp:
{"id": 1, "email": "[email protected]"}