From the course: React: Authentication

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

OAuth basics

OAuth basics

- [Instructor] So far, we've seen how to add authentication to our app using JSON web tokens. And we've also seen how to implement email verification and password reset functionality. So the next thing that we're going to take a look at here is how to add something called OAuth to our applications. Now, put simply, OAuth is when we allow our users to log into our site with credentials from some other site, right? Put another way, they can use another site's credentials instead of credentials, like a email and password that they've created specifically for our site. Now, probably the most well-known case of this is the login with Google, or login with Facebook, or login with GitHub buttons that you see on many sites. In this course, we're going to just be seeing how to add a login with Google Button to our site, but the concepts that we'll be covering here will be very similar for all OAuth providers. Now, before we get started, let's take a look at what OAuth is and how exactly it…

Contents