microsoft-authentication-library-for-js icon indicating copy to clipboard operation
microsoft-authentication-library-for-js copied to clipboard

Please update the NextJS example

Open icazemier opened this issue 1 year ago • 3 comments

Core Library

MSAL.js (@azure/msal-browser)

Wrapper Library

MSAL React (@azure/msal-react)

Public or Confidential Client?

Public

Description

I would dearly request Microsoft to up the NextJS examples.

A lot of people use NextJS, while NextJS does not promote to use the "pages directory" anymore. Currently the new hipster way of doing is using the "app directory" If I'm not mistaken, overriding the _app.js is also not encouraged.

https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/nextjs-sample

Thanks!

Source

External (Customer)

icazemier avatar Jul 03 '24 07:07 icazemier

Maybe even possible for you, to scaffold the example towards using Entra (External) ID ;)

icazemier avatar Jul 03 '24 08:07 icazemier

source.gif

icazemier avatar Aug 10 '25 12:08 icazemier

Hi @icazemier, there has been quite a few releases on the NextJS example base for MSAL since this request was posted. Do you have specific version or activity you are referring too? Which versions are you using or referring too? This would be more helpful that "how long is a piece of string".

devopsbob avatar Aug 11 '25 20:08 devopsbob