community-content icon indicating copy to clipboard operation
community-content copied to clipboard

[SUBMIT] User Authentication with React and Strapi

Open marvelken opened this issue 3 years ago • 26 comments
trafficstars

User Authentication with React and Strapi

Introduction

React is a popular choice for building complex web applications. Almost every web application requires user authentication. One of the popular options is to make use of a social login provider like Google or Facebook. Uniquely we can build authentication with React and Strapi backend.

Goal In this article we are going to create a react login form that uses Strapi for its backend. this article is both beginner and intermediate level developer-friendly.

Outline

  • Preparing development area
  • creating a new strapi application
  • Starting App State
  • Create the Login component
    • Adding React Hooks
    • Starting the JSX
    • Username Input
    • Password Input
  • Finish the form
    • handle submit function
    • Displaying the success screen
    • Testing the form
  • Creating Auth context and state
  • Conclusion

-->

My content is

  • [ ] A Strapi Tutorial / Guide / How to article

What do you all think? ❤️ I love it! 🚀 I can help you!

Thank you for submitting your article proposal.

marvelken avatar Mar 27 '22 22:03 marvelken

Thank you for submitting the outline @marvelken interesting - im just thinking that we have had some similar articles published already on the blog, maybe we can develop / add functionality in this tutorial? here's a link to our blog - https://strapi.io/blog - @TiaraOluwanimi what do you think?

ShadaW11 avatar May 05 '22 11:05 ShadaW11

Hi Shada, So sorry for the belated reply, I have been shocked up with work. About the article I feel there are much differences, maybe writing it will show how different they both are, Should I go on?

On Thu, May 5, 2022, 12:46 PM Shada @.***> wrote:

Thank you for submitting the outline @marvelken https://github.com/marvelken interesting - im just thinking that we have had some similar articles published already on the blog, maybe we can develop / add functionality in this tutorial? here's a link to our blog - https://strapi.io/blog - @TiaraOluwanimi https://github.com/TiaraOluwanimi what do you think?

— Reply to this email directly, view it on GitHub https://github.com/strapi/community-content/issues/770#issuecomment-1118456365, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKS3BMU67CZ5KH4O4MKKZLVIOYJNANCNFSM5RZNVA3A . You are receiving this because you were mentioned.Message ID: @.***>

marvelken avatar Jun 12 '22 18:06 marvelken

Hey @ShadaW11, I would like to work on this issue.

Sachin-chaurasiya avatar Jul 01 '22 16:07 Sachin-chaurasiya

Hey Guys i am looking for this for months i can't even find a single tutorial on this . you can aslo add how to persist user in react

Namankataria01 avatar Jul 19 '22 17:07 Namankataria01

This issue has been mentioned on Strapi Community Forum. There might be relevant details there:

https://forum.strapi.io/t/can-anyone-help-me-how-to-use-react-strapi-auth-with-email-with-user-persist-in-session-thruough-context/20512/1

strapi-bot avatar Jul 20 '22 13:07 strapi-bot

Hello @marvelken 👋 Are you still available to write this article?

dessireugarte avatar Jul 20 '22 15:07 dessireugarte

Hello @Sachin-chaurasiya 👋 Are you still interested in writing this article?

dessireugarte avatar Jul 29 '22 15:07 dessireugarte

Hello @Sachin-chaurasiya 👋 Are you still interested in writing this article?

Hello @dessireugarte, Yes, I would love to 💯 . Please assign this issue to me.

Sachin-chaurasiya avatar Jul 30 '22 07:07 Sachin-chaurasiya

Hey @Sachin-chaurasiya can you help me with thit issue ?

Namankataria01 avatar Aug 01 '22 13:08 Namankataria01

User Authentication with React and Strapi

Introduction

React is a popular choice for building complex web applications. Almost every web application requires user authentication. One of the popular options is to make use of a social login provider like Google or Facebook. Uniquely we can build authentication with React and Strapi backend.

Goal In this article we are going to create a react login form that uses Strapi for its backend. this article is both beginner and intermediate level developer-friendly.

Outline

  • Preparing development area

  • creating a new strapi application

  • Starting App State

  • Create the Login component

    • Adding React Hooks
    • Starting the JSX
    • Username Input
    • Password Input
  • Finish the form

    • handle submit function
    • Displaying the success screen
    • Testing the form
  • Creating Auth context and state

  • Conclusion

-->

My content is

  • [ ] A Strapi Tutorial / Guide / How to article

What do you all think? ❤️ I love it! 🚀 I can help you!

Thank you for submitting your article proposal.

Also the user persistance

Namankataria01 avatar Aug 01 '22 13:08 Namankataria01

Great @Sachin-chaurasiya! If this is your first article, can you please register your author details here by filling out the form. Then please scroll to the FAQ section and review the article guidelines, how to submit an article, issue an invoice and get paid.

Before getting started, can you confirm what the outline would look like?

dessireugarte avatar Aug 02 '22 12:08 dessireugarte

Great @Sachin-chaurasiya! If this is your first article, can you please register your author details here by filling out the form. Then please scroll to the FAQ section and review the article guidelines, how to submit an article, issue an invoice and get paid.

Before getting started, can you confirm what the outline would look like?

Thanks, @dessireugarte, I will do that. Should I share the outline here or somewhere else?

Sachin-chaurasiya avatar Aug 02 '22 12:08 Sachin-chaurasiya

Great @Sachin-chaurasiya! If this is your first article, can you please register your author details here by filling out the form. Then please scroll to the FAQ section and review the article guidelines, how to submit an article, issue an invoice and get paid.

Before getting started, can you confirm what the outline would look like?

@dessireugarte I have filled the form, please check.

Sachin-chaurasiya avatar Aug 02 '22 12:08 Sachin-chaurasiya

Thanks @Sachin-chaurasiya ! You share the outline here please

dessireugarte avatar Aug 04 '22 13:08 dessireugarte

Thanks @Sachin-chaurasiya ! You share the outline here please

Yes, I will share it here!

Sachin-chaurasiya avatar Aug 04 '22 13:08 Sachin-chaurasiya

@dessireugarte Here is the outline for the topic.

Topic: User Authentication with React and Strapi

Outline:

  • Introduction
    • About the topic
    • About the project that we will be building
  • Setting up the development environment
  • Creating a new strapi application
  • Creating Collections
  • Creating Relations between collections
  • Creating React Application
  • Installing required dependencies
  • Creating Auth context for managing current user
  • Creating Auth forms
    • SignIn
    • SignUp
  • SignUp flow
    • User inputs
    • Error handling
    • Displaying Success screen
  • SignIn Flow
    • User inputs
    • Error handling
    • Displaying Success screen
  • Logout flow
  • Conclusion

Sachin-chaurasiya avatar Aug 12 '22 08:08 Sachin-chaurasiya

@dessireugarte, Any update?

Sachin-chaurasiya avatar Aug 14 '22 08:08 Sachin-chaurasiya

Hello @Sachin-chaurasiya 👋 Thanks for the outline. You can start writing your draft. We use Dropbox Paper to submit and review drafts. Please duplicate and use this article template.

Once your article is ready, please share the dropbox link to your article in a comment on this GitHub issue.

dessireugarte avatar Aug 17 '22 10:08 dessireugarte

Hello @Sachin-chaurasiya 👋 Thanks for the outline. You can start writing your draft. We use Dropbox Paper to submit and review drafts. Please duplicate and use this article template.

Once your article is ready, please share the dropbox link to your article in a comment on this GitHub issue.

Sure @dessireugarte, Thank you 🚀 .

Sachin-chaurasiya avatar Aug 17 '22 10:08 Sachin-chaurasiya

Hey @dessireugarte , Just to provide an update. I'm almost finished with the draft, I will share the draft link by Sunday (IST). Thank you!

Sachin-chaurasiya avatar Aug 26 '22 11:08 Sachin-chaurasiya

Awesome! Thanks for the update! 👍

dessireugarte avatar Aug 29 '22 09:08 dessireugarte

Hello @dessireugarte , Here is the link for the draft article. Please share your feedback. https://www.dropbox.com/scl/fi/97wv008otqhpdqd8hsvcw/User-Authentication-with-React-and-Strapi-v4.paper?dl=0&rlkey=17e291tpv7llqio3kyj2l6dga

Sachin-chaurasiya avatar Sep 12 '22 17:09 Sachin-chaurasiya

Thanks for the review @TiaraOluwanimi, excited to see my first article on the strapi blog 🚀 .

Sachin-chaurasiya avatar Sep 22 '22 16:09 Sachin-chaurasiya

Hello @dessireugarte , Is there any update on when we are publishing this article?

Sachin-chaurasiya avatar Sep 27 '22 08:09 Sachin-chaurasiya

Hello @Sachin-chaurasiya 👋 Just wanted to let you know that your article will be published around the third week of October. I'll let you know when it is published!

dessireugarte avatar Oct 04 '22 09:10 dessireugarte

Hello @Sachin-chaurasiya 👋 Just wanted to let you know that your article will be published around the third week of October. I'll let you know when it is published!

Hello, @dessireugarte 👋 Thanks for the update.

Sachin-chaurasiya avatar Oct 04 '22 10:10 Sachin-chaurasiya

Hello @Sachin-chaurasiya 👋  Your article is live! 🎉 Please register to our forum by clicking on the discussion at the bottom of your post, so you automatically receive notifications when someone adds comments. Also please follow the guidelines to issue and submit an invoice. Now you can submit your invoice here, and soon you will receive your payment. If you want to promote your article, here are some ideas and templates that might help you! Please feel free to reach out to me if you have any questions!

dessireugarte avatar Oct 24 '22 08:10 dessireugarte

Hello @Sachin-chaurasiya 👋  Your article is live! 🎉 Please register to our forum by clicking on the discussion at the bottom of your post, so you automatically receive notifications when someone adds comments. Also please follow the guidelines to issue and submit an invoice. Now you can submit your invoice here, and soon you will receive your payment. If you want to promote your article, here are some ideas and templates that might help you! Please feel free to reach out to me if you have any questions!

Thank you so much @dessireugarte 🚀 . Looking forward to more contributions.

Sachin-chaurasiya avatar Oct 24 '22 08:10 Sachin-chaurasiya