1
0
bot/scpt/token.zsh
2024-02-08 15:29:46 +09:00

7 lines
226 B
Bash
Executable File

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
}