Member-only story

Sign in with Google into Node.js-based web applications

Easy session management with Express and Node.js

Marian C.
5 min readFeb 23, 2022

Passwords annoy users and complicate life of developers. Decent websites provide a possibility to log in with some social identity provider. In this post I use two modern options of sign in with Google to demonstrate that with Node.js web development is relatively easy. With Express library it is easy to implement and secure dynamic pages and REST resources. It is also easy to deploy Node.js-based web applications.

The sample website that I generate in this post is here https://googleidentity.onrender.com/. The website has two pages and one REST resource that can be accessed only by authenticated by Google users. The home page displays a primitive table with fake data received from the REST resource.

The second, About me, sample page displays the user’s profile which is made up of the meaningful data received from the Google identity service — user’s email, name and profile picture.

--

--

Marian C.
Marian C.

Written by Marian C.

Java, JavaScript and SQL developer. Interested in data collection and visualization.

Responses (1)