Open pwfraley opened 5 months ago
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
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:
To: