You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/develop/msal-node-migration.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ ms.custom: has-adal-ref
21
21
22
22
## Prerequisites
23
23
24
-
- Node version 10, 12or 14. See the [note on version support](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-node#node-version-support)
24
+
- Node version 10, 12, 14, 16 or 18. See the [note on version support](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-node#node-version-support)
25
25
26
26
## Update app registration settings
27
27
@@ -373,16 +373,19 @@ const cca = new msal.ConfidentialClientApplication(config);
373
373
374
374
constrefreshTokenRequest= {
375
375
refreshToken:"", // your previous refresh token here
For more information, please refer to the [ADAL Node to MSAL Node migration sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/refresh-token).
388
+
386
389
> [!NOTE]
387
390
> We recommend you to destroy the older ADAL Node token cache once you utilize the still valid refresh tokens to get a new set of tokens using the MSAL Node's `acquireTokenByRefreshToken` method as shown above.
388
391
@@ -419,7 +422,7 @@ var adal = require('adal-node');
419
422
// Authentication parameters
420
423
var clientId ='Enter_the_Application_Id_Here';
421
424
var clientSecret ='Enter_the_Client_Secret_Here';
422
-
var tenant ='common';
425
+
var tenant ='Enter_the_Tenant_Info_Here';
423
426
var authorityUrl ='https://login.microsoftonline.com/'+ tenant;
424
427
var redirectUri ='http://localhost:3000/redirect';
0 commit comments