aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmcsh.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcsh.sh b/mcsh.sh
index 5a41cbb..18b0995 100755
--- a/mcsh.sh
+++ b/mcsh.sh
@@ -47,7 +47,7 @@ function auth (
refresh_token="$(<<<"$res" jq -r '.refresh_token')"
msa_token="$(<<<"$res" jq -r '.access_token')"
- auth="$(jq --arg token "$refresh_token" '. + {"refresh_token": $token}' auth.json)"
+ auth="$(jq --arg token "$refresh_token" '. + {"refresh_token": $token, "type": "msa"}' auth.json)"
<<<"$auth" cat > auth.json
printf 'authenticating with xbox live\n' >&2