Help creating database records from page data with a new user that registers from oauth

Hello,

I have a registration flow on a web app that works like this:

  • unregistered prospect completes a form. the data in this form qualifies the prospect but will also be used for onboarding, and is stored in page data

  • prospect creates an account to begin the onboarding process

  • related records are created in several database tables using the data that is stored in page data

The problem I have is that oauth with Google takes the user away and returns them to the page. This loses the page data and I can’t add the required data to the database records.

Is there a way to address this? I thought about setting local storage data, but would that have problems with some browser privacy settings?

Hello @Luc_Zentar

You can use Local Storage, depending on what the data is.
You can also save this data to the database, then return the record id and write it to localStorage. Then do this redirect and when it comes back send another request to retrieve that data by id from the database.

Regards,
Inna

1 Like