Closed nichoth closed 9 months ago
I'm not sure if this project is open to PRs. This adds the ability to pass either a CryptoKey or a password string into encryptActions, ie
CryptoKey
encryptActions
import { encryptActions } from '@logux/client' const myKey = await crypto.subtle.generateKey( { name: 'AES-GCM', length: 256, }, true, ['encrypt', 'decrypt'] ) // ... encryptActions(client, myKey, { ignore: ['server/public'] // action.type to not be encrypted })
I wasn't sure how to add a test for this.
I rebased the branch to next (where we accumulate all new changes). Please, resolve conflicts.
next
This is how I fixed the PR bfb2592
I'm not sure if this project is open to PRs. This adds the ability to pass either a
CryptoKey
or a password string intoencryptActions
, ieencryptActions
so that lint passesI wasn't sure how to add a test for this.