axios-jwt
axios-jwt copied to clipboard
Bug in README.md JavaScript Version
trafficstars
In the README.md you give examples for the JavaScript Version,
in there you call the setAuthTokens and clearAuthTokens, this throws an error unknown funtion, because you are not importing those functions.
So the Import in the JavaScript Version should be changed from:
import { applyAuthTokenInterceptor } from 'axios-jwt';
To:
import { applyAuthTokenInterceptor, setAuthTokens, clearAuthTokens } from 'axios-jwt';
Okay, can you please open a PR?
Done