it should be `secret: key.encryptedSecret`
q
it should be
secret: key.encryptedSecret