createRvoClient
@nmi-agro/fdm-source / fdm-rvo/src / createRvoClient
Function: createRvoClient()
createRvoClient(
clientId,clientName,redirectUri,pkioPrivateKey,environment?):any
Defined in: fdm-rvo/src/auth.ts:17
Creates and configures an instance of the RVO Client.
This client is the main entry point for interacting with RVO services. It handles OAuth authentication and API requests.
Parameters
clientId
string
The OAuth 2.0 Client ID issued by RVO.
clientName
string
A human-readable name for your application, used in logs or RVO consent screens.
redirectUri
string
The callback URL where RVO will redirect the user after login. Must match the registered URI.
pkioPrivateKey
string
The private key (PKIO) used for signing client assertions in the OAuth flow.
environment?
"acceptance" | "production"
The RVO environment to connect to. Defaults to "production". Use "acceptance" for testing.
Returns
any
An initialized RvoClient instance ready for authentication.