---
title: "Creating social logins in NestJS"
url: https://daily.dev/posts/creating-social-logins-in-nestjs-fgiqjfzvm
source_url: https://blog.logrocket.com/social-logins-nestjs/
type: article
source: "LogRocket"
published: 2022-10-26T14:39:26.629Z
updated: 2022-10-26T14:39:26.620Z
tags: ["github", "authentication", "jwt", "nestjs"]
reading_time: 13
upvotes: 33
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating social logins in NestJS

**[LogRocket](https://daily.dev/sources/logrocket)** · 13 min read · 33 upvotes · 0 comments

## Summary

The NestJS application can easily be applied to other social platforms, such as Facebook, Google, etc. We’ll then learn how to protect private routes using guards and various authentication and authorization mechanisms provided in NestJS. The first one is authenticating a user through GitHub. Go ahead and install the Passport library and the library for the PASSport GitHub strategy.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.logrocket.com/social-logins-nestjs/>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#github](https://daily.dev/tags/github), [#authentication](https://daily.dev/tags/authentication), [#jwt](https://daily.dev/tags/jwt), [#nestjs](https://daily.dev/tags/nestjs)

[View this post on daily.dev](https://daily.dev/posts/creating-social-logins-in-nestjs-fgiqjfzvm)
