In this article, you'll learn how to implement Google OAuth Authentication with React.js and Node.js without using Passport. You'll also learn how to send JWT access and refresh tokens after the user has been authenticated.
- Create Google client ID and client secret
- Create a New Node.js Project
- Create an OAuth Consent Screen
- Create the OAuth Credentials
- Build the Consent Screen URL
- Build the Google OAuth Login Page with React and MUI
- Implement the OAuth Authentication on the Node.js Server
- Get Google OAuth Access Token and User's Profile
- Update the User Model
- Add a Service to Update the User
- Create the Google OAuth Controller
- Create the Route
- Register the Session Router
Read the entire article here: https://codevoweb.com/google-oauth-authentication-react-and-node/
Articles in this series:
Node.js + TypeScript + MongoDB: JWT Authentication
Node.js + TypeScript + MongoDB: JWT Refresh Token
Google OAuth Authentication with React.js and Node.js (No Passport)
GitHub OAuth Authentication React.js and Node.js(No Passport)