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 - React.js Tutorial
From the course: React: Authentication
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
-
-
-
-
-
-
(Locked)
OAuth basics3m 45s
-
(Locked)
Setting up OAuth on Google7m 39s
-
(Locked)
Adding an OAuth URL route6m 16s
-
(Locked)
Creating a "sign-in with Google" button6m
-
(Locked)
Adding an OAuth callback route4m 17s
-
(Locked)
Loading user info from Google3m 30s
-
(Locked)
Creating new users from OAuth data5m 49s
-
(Locked)
Handling successful OAuth authentication4m 7s
-
(Locked)
-
-
-
-