fixups in common.sh
This commit is contained in:
parent
aba30eaaa4
commit
1c2cd191b4
|
@ -7,7 +7,15 @@ function get_auth_string() {
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Authorization: Bearer $(cat secret/authToken)"
|
echo "Authorization: Bearer $(cat secret/authTokens.dat | grep "${cookies[sh_session]}:" | sed -s "s/${cookies[sh_session]}://")"
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_refresh_token() {
|
||||||
|
if ! session_verify ${cookies[sh_session]}; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$(cat secret/refreshTokens.dat | grep "${cookies[sh_session]}:" | sed -s "s/${cookies[sh_session]}://")"
|
||||||
}
|
}
|
||||||
|
|
||||||
# check_if_user_exists(file)
|
# check_if_user_exists(file)
|
||||||
|
|
Loading…
Reference in a new issue