Skip to content

Commit 8af5e4f

Browse files
committed
feat: add authHotkey parameter to challenge_call RPC method
1 parent d600712 commit 8af5e4f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

crates/rpc-server/src/jsonrpc.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,14 +1186,21 @@ impl RpcHandler {
11861186
}
11871187
}
11881188

1189+
// Optional auth_hotkey parameter for authenticated routes
1190+
let auth_hotkey = params
1191+
.get("authHotkey")
1192+
.or_else(|| params.get(5))
1193+
.and_then(|v| v.as_str())
1194+
.map(|s| s.to_string());
1195+
11891196
let request = RouteRequest {
11901197
method,
11911198
path,
11921199
params: std::collections::HashMap::new(),
11931200
query,
11941201
headers: std::collections::HashMap::new(),
11951202
body,
1196-
auth_hotkey: None,
1203+
auth_hotkey,
11971204
};
11981205

11991206
let maybe_handler = self.route_handler.read().clone();

0 commit comments

Comments
 (0)