*Code snippets are written for React but can be adapted to all Frontegg frontend SDKs
1. Subscribe to our signUpComplete
event➜
//index.js const events = { signUpComplete: (e) => { console.log('signUpComplete, the payload is:', e); // Send event to your DB } }
2. Pass events to the FronteggProvider
➜
ReactDOM.render( <FronteggProvider contextOptions={contextOptions} authOptions={authOptions} hostedLoginBox={false} events={events} >
The event triggers once the user submits the initial signup form and gets the Thanks for signing up!
message.
This will print an event object with a url
key and href
property, that will include the query params.
You can send the events to your servers from here!