See .env.example
for required environment variables
run server with npm start
curl --request POST \
--url http://localhost:3000/api/v1/sendCode \
--header 'content-type: application/json' \
--data '{
"phone": "Y0UR4H0N3",
"countryCode": "972"
}'
wait for sms here
curl --request POST \
--url http://localhost:3000/api/v1/verifyCode \
--header 'content-type: application/json' \
--data '{
"phone": "Y0UR4H0N3",
"countryCode": "972"
"code": "CODE FROM SMS HERE!"
}'