400 bad request with trying to get user id or follower list

#!/bin/bash

Ask for username and password

echo "What’s the username: "
read name

Curl for token

curl -X POST ‘https://id.twitch.tv/oauth2/token?client_id=<client_id>&client_secret=<client_code>&grant_type=client_credentials&scope=user:read:email’ >> token.txt && awk -F ‘"’ ‘{print $4}’ token.txt >> token_only.txt
token=$(cat token_only.txt)

Get User ID

curl -H ‘Accept: application/vnd.twitchtv.v5+json’ -H ‘Client-ID: <client_id>’ -H ‘Authorization: Bearer <client_code>’ -H 'Authorization: OAuth '$token 'https://api.twitch.tv/kraken/user?login=’$name -v

curl -H ‘Accept: application/vnd.twitchtv.v5+json’ -H ‘Client-ID: <client_id>’ -H ‘Authorization: Bearer <client_code>’ -H 'Authorization: OAuth '$token -X GET https://api.twitch.tv/helix/streams?user_login=$name -v

Remove Token for next go

rm token*

im almost positive there is something wrong with the url that im trying to call