mirror of
https://github.com/DeBrosOfficial/network-ts-sdk.git
synced 2025-12-12 18:28:50 +00:00
Add chain_type property to AuthClient for enhanced blockchain support
This commit is contained in:
parent
76bb82d4f8
commit
5c564b6327
@ -167,6 +167,7 @@ export class AuthClient {
|
|||||||
nonce: string;
|
nonce: string;
|
||||||
signature: string;
|
signature: string;
|
||||||
namespace?: string;
|
namespace?: string;
|
||||||
|
chain_type?: "ETH" | "SOL";
|
||||||
}): Promise<{
|
}): Promise<{
|
||||||
access_token: string;
|
access_token: string;
|
||||||
refresh_token: string;
|
refresh_token: string;
|
||||||
@ -178,6 +179,7 @@ export class AuthClient {
|
|||||||
nonce: params.nonce,
|
nonce: params.nonce,
|
||||||
signature: params.signature,
|
signature: params.signature,
|
||||||
namespace: params.namespace || "default",
|
namespace: params.namespace || "default",
|
||||||
|
chain_type: params.chain_type || "ETH",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Automatically set the JWT
|
// Automatically set the JWT
|
||||||
@ -194,6 +196,7 @@ export class AuthClient {
|
|||||||
nonce: string;
|
nonce: string;
|
||||||
signature: string;
|
signature: string;
|
||||||
namespace?: string;
|
namespace?: string;
|
||||||
|
chain_type?: "ETH" | "SOL";
|
||||||
}): Promise<{
|
}): Promise<{
|
||||||
api_key: string;
|
api_key: string;
|
||||||
namespace: string;
|
namespace: string;
|
||||||
@ -204,6 +207,7 @@ export class AuthClient {
|
|||||||
nonce: params.nonce,
|
nonce: params.nonce,
|
||||||
signature: params.signature,
|
signature: params.signature,
|
||||||
namespace: params.namespace || "default",
|
namespace: params.namespace || "default",
|
||||||
|
chain_type: params.chain_type || "ETH",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Automatically set the API key
|
// Automatically set the API key
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user