Cloudflare stream : 10000 - Authentication error

I am trying to test upload a file to CF Stream. I am using the tus client (tus-js-client). I am uploading from my test system (localhost). I keep getting this error:

Error: tus: unexpected response while creating upload, originated from request (response code: 400, response text: {“success”:false,“errors”:[{“code”:10000,“message”:“Authentication error”}]}

I have tested the token, it is working, I have checked the email and the account ids. They all are correct. Would there be an issue if we upload from localhost? or should it only be via the server that is registered in the ‘A’ record in cloudflare dns?

This is the token summary for reference : All accounts - Stream:Edit

Global API works. I have to check what Stream:Edit does though.