I'm working on an extension that changes the registration behaviour. I want to add custom data to the user. That data I receive when the auth callback is received, which is a controller. I have figured out that I can listen to the Registrered event to then take an action when the user registration is completed, which happens in the next request. Now, I haven't figured out a good way to share the data between these two places.
Of course, this goes across two separate requests, so data would have to be shared with a cookie, database, or similar. But are there already good mechanisms for doing this within Laravel / Flarum that makes it easy? Especially one where I can get hold of the data in the event listener for Registered.