Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in README.md JavaScript Version #73

Open
pwfraley opened this issue Apr 15, 2024 · 2 comments
Open

Bug in README.md JavaScript Version #73

pwfraley opened this issue Apr 15, 2024 · 2 comments

Comments

@pwfraley
Copy link
Contributor

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
Copy link
Member

Okay, can you please open a PR?

@pwfraley
Copy link
Contributor Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants