# Add OAuth 2.0 to a Node.js CRUD app

DevFeed: [Add OAuth 2.0 to a Node.js CRUD app](<https://devfeed.tech/articles/add-oauth-2-0-to-a-node-js-crud-app-83305.md>)

Original publisher: [Read original article](<https://ngrok.com/blog/nodejs-crud-app-oauth-tutorial>)

Author: Scott McAllister

Published: 2024-01-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [\[ngrok news\]](<https://devfeed.tech/sources/ngrok-news.md>)

Topics: [Node.js](<https://devfeed.tech/topics/node-js.md>), [OAuth](<https://devfeed.tech/topics/oauth.md>), [Express](<https://devfeed.tech/topics/express.md>), [CRUD](<https://devfeed.tech/topics/crud.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [database](<https://devfeed.tech/tags/database.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [ngrok](<https://devfeed.tech/tags/ngrok.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [oauth](<https://devfeed.tech/tags/oauth.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

This tutorial builds on a Node.js CRUD application and uses the ngrok JavaScript SDK to configure a stable domain and application ingress. It then adds Google OAuth to authenticate users and restrict access to the React frontend and Express REST API. The article also demonstrates domain and email authorization options and graceful shutdown handling.

## Source excerpt

Secure a Node.js CRUD app using the ngrok JavaScript SDK for stable domain setup. Implement OAuth through Google for user authentication and authorization.