How to Validate the URL provided in `redirectUrl`

To enhance your users' security and validate the URL provided in the redirectUrlparameter, you can pass enforceRedirectToSameSite and allowedRedirectOrigins flags to the FronteggProvider:

authOptions: {
    enforceRedirectToSameSite: true,
    allowedRedirectOrigins: ['']
  hostedLoginBox={false} // If you're using Embedded login

This will help prevent attempts to generate potentially malicious links and redirect the users to such sites.