Hi, I’d like to access user_metadata in the pre-user registration hook. My use case is to use some of the metadata passed to webAuth.redirect.signupAndLogin to make an external request in the hook and then add to the user_metadata with the response I get from that external request.
However it appears that the metadata I am passing to webAuth.redirect.signupAndLogin is not available there. That metadata is available in the user-post registration hook (but my understanding is that I cannot add to user_metadata in the post registration hook), furthermore the metadata does get set on the user when I view it in the auth0 web interface, but that metadata isn’t returned in when requesting the user’s profile.
Am I missing something or is it not possible to access metadata passed to webAuth.redirect.signupAndLogin in the pre registration hook?
Also is it not possible to add to user metadata in the post registration hook?
I don’t think I can do this work in a rule because I need to make the external request with secret credentials and I don’t see any way to set a secret in a rule.