To securely login and authenticate to the API and set YARND_TOKEN env var for later use:

IFS= read -rsp 'Password: ' password; payload="$(jq -cnr --arg password "$password" '{username: "admin", "password": $password}')"; export YARND_TOKEN="$(curl -s -d "$payload" http://localhost:8000/api/v1/auth | jq -r '.token')"

⤋ Read More

Participate

Login to join in on this yarn.