Hello, I have setup an OIDC flow using @gilded olive/passport and openid-client. My end goal is to be able to redirect the user where he wanted to go in the first place when he is automatically redirected to the SSO because he is not logged.
When a user land on my frontend, he is redirect to the /login endpoint automatically. I have a guard that intercept the request and handles the redirect the authorize endpoint.
I cannot find where I can specify the state parameters that can be sent on the authorize endpoint, in order to forward what my frontend sends me in the /login request as query parameters. The goal is to retrieve the state in the /callback endpoint afterwards when the SSO redirects the user on my nest endpoint, so that I can redirect the user on its initial request afterwards.
any idea where I can specify this state ?