Hi @Edo ,
Thanks for reaching out.
The error you are getting is due to the missing configuration in the application.
In this above-mentioned code block, the application uses MSAL to obtain an authorization code request URL which require state and nonce parameters from cache as part of authCodeUrlParameters to construct the URL.
These cached values need to be passed as part of authCodeResponse in ClientApplicaiton.acquireTokenByCode API call, to be validated before the authorization code is sent to the server in exchange for an access token.
Here in authCodeUrlParameters those values are missing which constructs the empty URL.
Hope this will help to construct the correct URL.
Thanks,
Shweta
-------------------------------------
Please remember to "Accept Answer" if answer helped you.