Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get bearer token in react

axios.interceptors.request.use(req => {
  // `req` is the Axios request config, so you can modify
  // the `headers`.
  req.headers.authorization = 'my secret token';
  return req;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bearer #token #react
ADD COMMENT
Topic
Name
7+3 =