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

Question

Open pwfraley opened this issue 1 year ago • 6 comments
trafficstars

I have a question, by default the localStorage Storage uses auth-tokens-${process.env.NODE_ENV} as a name for the local storage.

My Question: What is the correct way to override this?

Thanks

pwfraley avatar Apr 16 '24 08:04 pwfraley

Open a PR to add a configuration option perhaps

revmischa avatar Apr 16 '24 15:04 revmischa

So you are saying there is no way to configure this at the moment?

pwfraley avatar Apr 20 '24 10:04 pwfraley

There is none that I know of, but you're welcome to add the capability

revmischa avatar Apr 22 '24 15:04 revmischa

I guess I will check into it, after my last pull request with the fix for the error in the readme is answered, since I do not know if this pull request was okay ;)

pwfraley avatar Apr 24 '24 14:04 pwfraley

I'd like to ask, is there any option to change token name in localstorage? I mean default at localhost app is smth like auth-token-development (can't check it now), but I prefer to use my own key name.

Jerzor avatar May 06 '24 10:05 Jerzor

I'd like to ask, is there any option to change token name in localstorage? I mean default at localhost app is smth like auth-token-development (can't check it now), but I prefer to use my own key name.

Unfortunately this does not seem to be possible as of now. I am planing to implement an override and then create a pull request, but have not had the time yet.

pwfraley avatar May 06 '24 13:05 pwfraley