We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d600712 commit 8af5e4fCopy full SHA for 8af5e4f
crates/rpc-server/src/jsonrpc.rs
@@ -1186,14 +1186,21 @@ impl RpcHandler {
1186
}
1187
1188
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
+
1196
let request = RouteRequest {
1197
method,
1198
path,
1199
params: std::collections::HashMap::new(),
1200
query,
1201
headers: std::collections::HashMap::new(),
1202
body,
- auth_hotkey: None,
1203
+ auth_hotkey,
1204
};
1205
1206
let maybe_handler = self.route_handler.read().clone();
0 commit comments