Then I don’t know what wrong
as you wrote
I assumed that was what you actually sent/got back
You are trying to send your client secret as your auth header
And you are still sending a Kraken auth header.
Which is winning.
curl -H 'Client-ID: '$client_id -H 'Authorization: Bearer '$client_secret -H 'Authorization: OAuth '$token 'https://api.twitch.tv/helix/users?login=’$name -v
Should be
curl -H 'Client-ID: '$client_id -H 'Authorization: Bearer '$token 'https://api.twitch.tv/helix/users?login=’$name -v
as per the example call
curl -X GET 'https://api.twitch.tv/helix/users?id=141981764' \
-H 'Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y' \
-H 'Client-Id: uo6dggojyb8d6soh92zknwmi5ej1q2'