axios-jwt
axios-jwt copied to clipboard
Question
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
Open a PR to add a configuration option perhaps
So you are saying there is no way to configure this at the moment?
There is none that I know of, but you're welcome to add the capability
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 ;)
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.
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.