Hi, I have a question on how to correctly work with authorization in Nest.js.
I want to sign in using MSAL (Microsoft Authentication Library) in my SPA (Next.js, React or React Native).
This way I retrieve access token issued from Microsoft, and then I'm sending this access token to my Nest.js backend, where I call Microsoft Graph API to retrieve basic information about the user.
If the request is OK, it means the access token is validated and has not been tampered with. Then, I return own JWT issued by my Nest.js backend.
Is this approach correct? If so, what are the use cases of passport-azure-ad or passport-microsoft?
Thank you