Signature of a function to provide "solclientjs" continuously with a valid "OAuth 2.0 Access Token".
OAuth 2.0 enables secure login to the broker while protecting user credentials.
Returns an Observable that emits the user's access token upon subscription, and then continuously emits it when the token is renewed.
The Observable should never complete, enabling the connection to the broker to be re-established in the event of a network interruption.
Register this function in SolaceMessageClientConfig#accessToken and enable OAuth 2.0 authentication scheme in SolaceMessageClientConfig#authenticationScheme.
Signature of a function to provide "solclientjs" continuously with a valid "OAuth 2.0 Access Token".
OAuth 2.0 enables secure login to the broker while protecting user credentials.
Returns an Observable that emits the user's access token upon subscription, and then continuously emits it when the token is renewed. The Observable should never complete, enabling the connection to the broker to be re-established in the event of a network interruption.
Register this function in SolaceMessageClientConfig#accessToken and enable OAuth 2.0 authentication scheme in SolaceMessageClientConfig#authenticationScheme.
Example:
The function can call
inject
to get any required dependencies.