Content inside supertokenslib
(The raw file follows this syntax highlighted file.)
#!/bin/bash
set -e
if [[ $# -eq 0 ]] ; then
echo "This script requires that a file with env vars be provided as an argument. E.g.: ./this_script.sh some_vars.env"
exit 1
fi
set -o allexport
source $1
set +o allexport
echo "Admin email:"
read adminEmail
unset -v password
set +o allexport # Yes, we might have already done this above, but for cut-n-paste purposes...
IFS= read -rsp 'Please enter a password: ' password
echo
# TO USE THE PASSWORD, drop the following inside double quotes: $(printf "%s" $password)
# Obviously, if you want to actually run the curl command, you'll need to comment out the next line...
exit 0
curl --location --request POST "$CONNECTION_URI/recipe/dashboard/user" \
--header "rid: dashboard" \
--header "api-key: $API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{"email": "'"$(printf "%s" $adminEmail)"'","password": "'"$(printf "%s" $password)"'"}'
#!/bin/bash set -e if [[ $# -eq 0 ]] ; then echo "This script requires that a file with env vars be provided as an argument. E.g.: ./this_script.sh some_vars.env" exit 1 fi set -o allexport source $1 set +o allexport echo "Admin email:" read adminEmail unset -v password set +o allexport # Yes, we might have already done this above, but for cut-n-paste purposes... IFS= read -rsp 'Please enter a password: ' password echo # TO USE THE PASSWORD, drop the following inside double quotes: $(printf "%s" $password) # Obviously, if you want to actually run the curl command, you'll need to comment out the next line... exit 0 curl --location --request POST "$CONNECTION_URI/recipe/dashboard/user" \ --header "rid: dashboard" \ --header "api-key: $API_KEY" \ --header "Content-Type: application/json" \ --data-raw '{"email": "'"$(printf "%s" $adminEmail)"'","password": "'"$(printf "%s" $password)"'"}'