I'm a selftaught (web) developer. On sunny days, you can find me hiking through the Teutoburg Forest, on rainy days coding or with a good fiction novel in hand.
I feel you. You might not believe it, but I ran into pretty much the same fail today as well (token somehow ended up in the data - prop, wtf was I thinking)
My lesson learned here (hopefully) was:
Create axios instances in separate files and export them.
Explicitly define headers, http-method and data in a config object
// ... some async function codeconstconfig={url:'https://my-url.com',method:'get',headers:{/* ... */},data:JSON.stringify({/* ... */})}constresponse=awaitaxios(config)// ... some more function code
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I feel you. You might not believe it, but I ran into pretty much the same fail today as well (token somehow ended up in the data - prop, wtf was I thinking)
My lesson learned here (hopefully) was: