axios-jwt icon indicating copy to clipboard operation
axios-jwt copied to clipboard

Bug in README.md JavaScript Version

Open pwfraley opened this issue 1 year ago • 2 comments
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';

pwfraley avatar Apr 15 '24 12:04 pwfraley

Okay, can you please open a PR?

revmischa avatar Apr 15 '24 15:04 revmischa

Done

pwfraley avatar Apr 15 '24 15:04 pwfraley