StaticCredentialProvider

View as MarkdownOpen in Claude

Credential provider that returns a fixed set of credentials.

Use when the token is already available (e.g. from a backend endpoint).

Examples

1const provider = new StaticCredentialProvider({ token: 'my-sat-token' });
2const client = new SignalWire(provider);

Implements

Constructors

Constructor

1new StaticCredentialProvider(credentials): StaticCredentialProvider

Parameters

credentials
SDKCredentialRequired

Credentials used to authenticate the SDK session. See SDKCredential.

Methods