Backend engineer and Cloud security and computer networking enthusiast
Alfred is a software engineer and cyber security specialist based in Enugu, Nigeria. He is passionate about solving real-world problems through well-crafted software and leveraging blockchain technology.
Markdown supported · ⌘↵ to post
Quite a neat method. Axios has a way of setting the authorization token once, globally. By using
axios.defaults.headers.common['Content-Type'] = 'application/json';
axios.defaults.headers.common['Authorization'] = `Bearer ${access_token}`;
Check this StackOverflow answer for more info.
Rahul Singh
Love this ❤️ I would love to hear your thoughts on 4 Programming Language That Will Dominate 2021