Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const getUser = async (token) =>{
- try{
- const authString =`bearer ${token}`
- const config = {
- proxy:{
- host:'173.44.34.106',
- port:34276,
- },
- headers:{
- 'Authorization':authString,
- },
- }
- console.log('url',userUrl,'authString',authString)
- const response = await axios.get(userUrl,config)
- return response
- }catch(error){
- return error.message
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement