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

Allow to setup custom storage #622

Merged
merged 1 commit into from
Jan 23, 2021
Merged

Allow to setup custom storage #622

merged 1 commit into from
Jan 23, 2021

Conversation

zorn-v
Copy link
Contributor

@zorn-v zorn-v commented Jan 22, 2021

Currently I write middleware app and want to use vue-auth there. But problem is that it does not have (not persist) cookie/storage, but I can (and want) to store token by myself via expose some object (say QtApp) to js.
With this patch I can do something like this

const options = {
//...
  stores: [{get(key){}, set(key, token){}, remove(key){}}]
//...
}

@websanova websanova merged commit 42fab5c into websanova:master Jan 23, 2021
@websanova
Copy link
Owner

Alright, this is up in 4.1.1, thx :-)

@zorn-v
Copy link
Contributor Author

zorn-v commented Jan 23, 2021

Thanks for the speed 😄

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

Successfully merging this pull request may close these issues.

2 participants