Action for assigning default Role does not work

Thanks for your comments, I already modified my code according to similar snippets in other topics.
Also I am using Post registration as I am going to use only Passwordless clients, which are valid for this type as well.

Currently my code does not work because of Auth0 bug Post-user-registration trigger for actions not called - #15 by tyf