File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,12 @@ interface AleoNetworkClientOptions {
26
26
*
27
27
* @property provingRequest {ProvingRequest | string} The proving request being submitted to the network.
28
28
* @property url {string} The URL of the delegated proving service.
29
- * @property apiKey {string} The API key to use for authentication. NOTE: This is not currently used but will be in a future release.
30
- * @property delegatedProvingJWT {string} JWT token for authentication. NOTE: This will be deprecated in favor of apiKey in a future release.
29
+ * @property apiKey {string} The API key to use for authentication.
31
30
*/
32
31
interface DelegatedProvingParams {
33
32
provingRequest : ProvingRequest | string ;
34
33
url ?: string ;
35
34
apiKey ?: string ;
36
- delegatedProvingJWT ?: string ;
37
35
}
38
36
39
37
/**
@@ -1629,10 +1627,8 @@ class AleoNetworkClient {
1629
1627
} ;
1630
1628
1631
1629
// Add auth header based on what's available
1632
- if ( options . delegatedProvingJWT ) {
1633
- headers [ "Authorization" ] = `Bearer ${ options . delegatedProvingJWT } ` ;
1634
- } else if ( options . apiKey ) {
1635
- headers [ "X-API-Key" ] = options . apiKey ;
1630
+ if ( options . apiKey ) {
1631
+ headers [ "X-Provable-API-Key" ] = options . apiKey ;
1636
1632
}
1637
1633
1638
1634
try {
@@ -1642,7 +1638,6 @@ class AleoNetworkClient {
1642
1638
headers
1643
1639
} )
1644
1640
) ;
1645
-
1646
1641
const responseText = await response . text ( ) ;
1647
1642
return parseJSON ( responseText ) ;
1648
1643
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments