authenticate
Obtains the initial credentials. Called once during client initialization.
Implementor responsibilities:
- Resolve with a valid
SDKCredentialon success. - Reject (throw) on failure — this will cause client initialization to fail.
- When
context.fingerprintis provided, forward it to the server-side token endpoint withscope: "sat:refresh"to enable automatic token refresh.
SDK behavior:
- Awaits this method before establishing the WebSocket connection.
- On rejection, propagates the error to the caller of
SignalWire().
Returns
Promise<{ expiry_at: number; token: string; }>