TypeAlias.KeybanClientConfig
type KeybanClientConfig: {
accessTokenProvider: () => string | Promise<string>;
apiUrl: string;
appId: string;
chain: KeybanChain;
clientShareKeyProvider: () => JsonWebKey | Promise<JsonWebKey>;
};
Configuration options for the Keyban client.
Type declaration
Name | Type | Description |
---|---|---|
accessTokenProvider | () => string | Promise <string > | A function that provides the access token, either synchronously or asynchronously. |
apiUrl ? | string | The base URL of the API. Optional. Defaults to "https://api.keyban.io" if not provided. |
appId | string | The application ID. |
chain | KeybanChain | The blockchain configuration for Keyban. |
clientShareKeyProvider | () => JsonWebKey | Promise <JsonWebKey > | A function that provides the client share encryption key, either synchronously or asynchronously. |