Embedded Login and Redirect from Marketing Website

We are a health care company and we onboard users on our marketing website after a short form.

Screenshot 2022-12-22 at 10.01.42 AM

We would like to embed a signup widget form in the marketing website so that we can:

  • Create an account for them as part of the form
  • Sign them in and redirect them from our marketing website to our application

Question: Is there a recommended way to accomplish this?

I have tried using AuthLock0 in a simple test here

but the two problems I face are:

  • it appears as a modal instead of being inlined
  • when I sign in via the link above I get the following error

Callback handler failed. CAUSE: Missing state cookie from login request (check login URL, callback URL and cookie config)

I assume it’s because the domains are different.