Skip to content

Commit

Permalink
Merge pull request #36 from biscuit-auth/biscuit-3.1
Browse files Browse the repository at this point in the history
Biscuit 3.1
  • Loading branch information
divarvel committed Apr 27, 2023
2 parents ef6a5a8 + 08276ff commit b9ccf27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib", "rlib"]

[dependencies]
base64 = "0.13.0"
biscuit-auth = { version = "3.0.0", features = ["wasm", "serde-error"] }
biscuit-auth = { version = "3.1.0", features = ["wasm", "serde-error"] }
console_error_panic_hook = "0.1.7"
hex = "0.4.3"
log = "0.4.14"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -153,12 +153,12 @@ impl Biscuit {
pub fn append_third_party(
&self,
external_key: &PublicKey,
block: ThirdPartyBlock,
block: &ThirdPartyBlock,
) -> Result<Biscuit, JsValue> {
let next_keypair = KeyPair::new();
Ok(Biscuit(
self.0
.append_third_party_with_keypair(external_key.0, block.0, next_keypair.0)
.append_third_party_with_keypair(external_key.0, block.0.clone(), next_keypair.0)
.map_err(|e| serde_wasm_bindgen::to_value(&e).unwrap())?,
))
}
Expand Down

0 comments on commit b9ccf27

Please sign in to comment.