Class.KeybanClientShareProvider
A client share provider implementation for the Keyban client.
The KeybanClientShareProvider
class provides methods to get and set the client share.
This class is used to interact with the client share storage on the server side.
Remarks
The client share is saved in a service provided by Keyban, ensuring secure storage and retrieval of the client share information.
Implements
Constructors
new KeybanClientShareProvider()
new KeybanClientShareProvider(): KeybanClientShareProvider
Returns
Methods
get()
get(): Promise<null | string>
Retrieves the client share information.
Returns
Promise
<null
| string
>
- A promise that resolves to a string containing the client share, or null if not available.
Implementation of
set()
set(clientShare: string): Promise<unknown>
Sets the client share information.
Parameters
Parameter | Type | Description |
---|---|---|
clientShare | string | The client share string to set. |
Returns
Promise
<unknown
>
- A promise that resolves when the client share has been set.