https://www.nngroup.com/videos/login-walls/
Summary: Demanding that users create a new account before they are able to access a website or mobile app is only justified in rare cases. Usually, people go away, rather than scale a wall placed between them and your offerings.