Add chain_type property to AuthClient for enhanced blockchain support

This commit is contained in:
anonpenguin23 2025-10-28 19:18:18 +02:00
parent 76bb82d4f8
commit 5c564b6327

View File

@ -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