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

Change storage of vault and salt #57

Merged
merged 7 commits into from
May 14, 2021

Conversation

hoffmannjan
Copy link
Contributor

@hoffmannjan hoffmannjan commented May 11, 2021

Converted AuthController to use https:/extend-chrome/storage which is wrapper around chrome.storage

private saveKeyValuetoStore(key: string, value: any) {
store.set(key, value);
private async saveKeyValuetoStore(key: string, value: any) {
storage.local.set({ [key]: JSON.stringify(value) });
Copy link
Contributor Author

@hoffmannjan hoffmannjan May 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm serializing to JSON as sometimes the value here is Uint8Array and unfortunately this chrome-storage wrapper is throwing errors when trying to serialize it. We might consider refactoring it someday and find better way, but now it seems to be ok and fully working

@hoffmannjan
Copy link
Contributor Author

facebook/create-react-app#10945

npm audit error comes from this issue :/

@hoffmannjan hoffmannjan changed the base branch from master to develop May 14, 2021 12:12
@hoffmannjan hoffmannjan changed the base branch from develop to master May 14, 2021 12:12
Copy link
Contributor

@George-cl George-cl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified it's working - nice one!

@George-cl George-cl merged commit ca34afe into master May 14, 2021
@George-cl George-cl deleted the fix/change-storage-of-vault-and-salt branch May 14, 2021 12:23
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