Check out example codes for "curl authorization header". It will help you in understanding the concepts better.

Code Example 1

curl -H "Authorization: token_str" http://www.example.com

Learn ReactJs, React Native from akashmittal.com