curl -X POST \
http://localhost:3000/auth/register \
-H 'Content-Type: application/json' \
-d '{
"email": "mitch@murphy.com",
"password": "password"
}'
RES=`curl -X POST \
http://localhost:3000/auth/login \
-H 'Content-Type: application/json' \
-d '{
"email": "mitch@murphy.com",
"password": "password"
}'`
Get and save the token:
TOKEN=`echo $RES | jq -r .token`