How can i assign roles on signup?


I’m new to Strapi. How can i assign roles for new users on signup when they register through my site? I’m not talking about changing them from public to authenticated - I would like each new user to be assigned the "author’ role where it’s been configured so that they can post, edit and delete their own comments but not other peoples’

Thanks in advance!

make a aftercreate lifecyle in strapi that does that when a user has been created