Skip to content

Commit

Permalink
Upgrade svix library
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte authored and svix-aaron1011 committed Feb 7, 2024
1 parent 4cc41dc commit 4a2f8ce
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 8 deletions.
16 changes: 14 additions & 2 deletions bridge/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 bridge/svix-bridge-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ async-trait = "0.1"
tokio = { version = "1", features = ["full"] }
serde_json = "1"
serde = { version = "1", features = ["derive"] }
svix = "0.85.1"
svix = "1.17.0"
16 changes: 14 additions & 2 deletions server/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 server/svix-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ publish = false
[dependencies]
svix-server_derive = { path = "../svix-server_derive" }

svix = "0.60"
svix = "1.17.0"
svix-ksuid = "^0.5.1"
dotenv = "0.15.0"
hmac-sha256 = "1"
Expand Down
4 changes: 2 additions & 2 deletions server/svix-server/tests/e2e_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ async fn test_endpoint_rotate_signing_e2e() {
for sec in [secret1, secret2, secret3] {
if let EndpointSecret::Symmetric(key) = &sec.key {
let sec = base64::encode(key);
let wh = Webhook::new(sec).unwrap();
let wh = Webhook::new(&sec).unwrap();
wh.verify(last_body.as_bytes(), &last_headers).unwrap();
} else {
panic!("Shouldn't get here");
Expand Down Expand Up @@ -1227,7 +1227,7 @@ async fn test_endpoint_rotate_signing_symmetric_and_asymmetric() {
match sec {
EndpointSecret::Symmetric(key) => {
let sec = base64::encode(key);
let wh = Webhook::new(sec).unwrap();
let wh = Webhook::new(&sec).unwrap();
wh.verify(last_body.as_bytes(), &last_headers).unwrap();
}
EndpointSecret::Asymmetric(key) => {
Expand Down

0 comments on commit 4a2f8ce

Please sign in to comment.