jetbridge / axios-jwt

Store, transmit, refresh JWT authentication tokens for axios
https://www.npmjs.com/package/axios-jwt/
115 stars 30 forks source link

Bug in README.md JavaScript Version #73

Open pwfraley opened 5 months ago

pwfraley commented 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';
revmischa commented 5 months ago

Okay, can you please open a PR?

pwfraley commented 5 months ago

Done