---
title: "Discussion on \"How to integrate Microsoft login in nest.js\" | Hashnode"
description: "Discussion on \"How to integrate Microsoft login in nest.js\". Integrating Microsoft login into a Nest.js application is a straightforward process that can be accomplished using the @nestjs/passport library. In this article, we will walk through the steps required to set up Microsoft login in a Nest.js applicati..."
url: "https://hashnode.com/posts/how-to-integrate-microsoft-login-in-nestjs/63c00cc0c057d97a09c031f9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to integrate Microsoft login in nest.js](https://opeyemigabriel.hashnode.dev/how-to-integrate-microsoft-login-in-nestjs?utm_source=hashnode&utm_medium=feed)

Integrating Microsoft login into a Nest.js application is a straightforward process that can be accomplished using the @nestjs/passport library. In this article, we will walk through the steps required to set up Microsoft login in a Nest.js applicati...

Jan 12, 2023 · 2 min read · opeyemigabriel.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#microsoft](https://hashnode.com/tag/microsoft)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#login](https://hashnode.com/tag/login)

## Written by

[Opeyemi Famosipe](https://hashnode.com/@codewithgabe)

@codewithgabe · Akure, Nigeria

  
[View profile](https://hashnode.com/@codewithgabe)

Software engineer

## Responses 2

Markdown supported · ⌘↵ to post

[Kshitij khanal](https://hashnode.com/@horijon)

[Nov 12, 2024](https://hashnode.com/posts/how-to-integrate-microsoft-login-in-nestjs/63c00cc0c057d97a09c031f9/comment/6732eca1b87543098dc26b67)

This code simply doesn't work. I tried it and the validate function is not invoked. Do you have any git repository with the working codebase? [Opeyemi Famosipe](https://hashnode.com/@codewithgabe)

[Juan Manuel Herrera Carrera](https://hashnode.com/@elTampiko)

[Jun 29, 2023](https://hashnode.com/posts/how-to-integrate-microsoft-login-in-nestjs/63c00cc0c057d97a09c031f9/comment/649e0e475b8c3caad17873eb)

hi, sorry, i cant run it, say that an error appear in passport.strategy.js:6, and say that the error is in this code: class MixinStrategy extends Strategy {

honestly my mind is tired to try the login with a microsoft account, well, a company microsoft acount, i dont know if is the same an oauth microsoft login or something like that, thanks.
