How to build React Login/Registration?

Hey friends,

could someone give me a hint on how to build a Login + Registration for a dapp with React? Especially how to save the data in session or cookie. What is best practice here?

Thanks!

Greetings, Daniel

1 Like

Hello sir, I have moved your topic to the proper category, so the community can reach your questions easily.

If you have any more questions, please let us know so we can help you! :slightly_smiling_face:

Carlos Z.

Look up JWT (JSON Web Token) and also check out this blog post for more details: https://jasonwatmore.com/post/2020/03/02/react-hooks-redux-user-registration-and-login-tutorial-example.

Also, depending on the complexity of your project, you may want to consider what kind of extra security you’d expect. If you deal with money, registration and login is not enough, you often need 2 factor authentication and special care. If it’s just an MVP to collect users, even Single Sign-On via Facebook, gmail etc. works, see e.g. https://www.npmjs.com/package/react-facebook-login.

1 Like

Hey, thanks for the Info. Checked JWT . It Looks really nice. I think I will combine with 2 factor auth to be on the save side.

Thanks for hint and Support

1 Like