Skip to main content

generateAuthUrl

@nmi-agro/fdm-source


@nmi-agro/fdm-source / fdm-rvo/src / generateAuthUrl

Function: generateAuthUrl()

generateAuthUrl(rvoClient, state): any

Defined in: fdm-rvo/src/auth.ts:61

Generates the authorization URL for the RVO OAuth 2.0 flow.

This URL is where you should redirect the user to log in with eHerkenning.

Parameters

rvoClient

RvoClient

The initialized RvoClient instance.

state

string

A unique, random string used to prevent CSRF attacks and maintain state (e.g., farm ID) across the redirect.

Returns

any

The full URL to redirect the user to.