Skip to content

Commit

Permalink
fix(forms): pass formPublicKey when generating local state (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored May 12, 2023
1 parent 59aa11a commit 7011205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/crypto/src/form/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function initializeEncryptedFormLocalState(
const mainSecret = base64UrlDecode(serializedMainSecret)
return deriveState(sodium, mainSecret, formPublicKey)
} catch {
return generateEncryptedFormLocalState()
return generateEncryptedFormLocalState(formPublicKey)
}
}

Expand Down

0 comments on commit 7011205

Please sign in to comment.