From bd61cc059cb56fc5cf3de7aa27ffa322bc656059 Mon Sep 17 00:00:00 2001 From: sevenzing <41516657+sevenzing@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:42:03 +0300 Subject: [PATCH] Update blockscout-auth path to v2 --- libs/blockscout-auth/src/auth.rs | 2 +- libs/blockscout-auth/src/mock.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/blockscout-auth/src/auth.rs b/libs/blockscout-auth/src/auth.rs index 68c55d9ec..15ec19189 100644 --- a/libs/blockscout-auth/src/auth.rs +++ b/libs/blockscout-auth/src/auth.rs @@ -69,7 +69,7 @@ pub async fn auth_from_tokens( blockscout_api_key: Option<&str>, ) -> Result { let mut url = blockscout_host - .join("/api/account/v1/authenticate") + .join("/api/account/v2/authenticate") .expect("should be valid url"); url.set_query( blockscout_api_key diff --git a/libs/blockscout-auth/src/mock.rs b/libs/blockscout-auth/src/mock.rs index fc8bf4169..dc48ff09c 100644 --- a/libs/blockscout-auth/src/mock.rs +++ b/libs/blockscout-auth/src/mock.rs @@ -17,7 +17,7 @@ pub async fn init_mocked_blockscout_auth_service( users: &[MockUser], ) -> MockServer { let mock_server = MockServer::start().await; - let url = "/api/account/v1/authenticate".to_string(); + let url = "/api/account/v2/authenticate".to_string(); for user in users { let mut mock = Mock::given(method("GET"))