1
0
bot/test/token.zsh

7 lines
226 B
Bash
Raw Normal View History

2023-10-20 14:31:16 +00:00
function token() {
url=https://$host/xrpc/com.atproto.server.createSession
j=`curl -sL -X POST -H "Content-Type: application/json" -d "{\"identifier\":\"$handle\",\"password\":\"$pass\"}" $url`
echo $j
echo $j >! $cfg.t
}