question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extend the adal-node to msal-node migration docs with info on refresh tokens

See original GitHub issue

Library

  • msal@1.x.x or @azure/msal@1.x.x
  • @azure/msal-browser@2.x.x
  • @azure/msal-node@1.x.x
  • @azure/msal-react@1.x.x
  • @azure/msal-angular@0.x.x
  • @azure/msal-angular@1.x.x
  • @azure/msal-angular@2.x.x
  • @azure/msal-angularjs@1.x.x

Documentation location

  • docs.microsoft.com
  • MSAL.js Github Wiki
  • README file
  • Other (please fill in)
  • Documentation does not exist

Description

One of the biggest points of confusion when migrating from adal-node to msal-node was for me the fact that msal-node (or MSAL in general) no longer exposes refresh tokens. Unless I totally missed it, the migration docs don’t mention this and I found the explanation in one of the issues in the repo. Since this is a big design change for folks coming from adal, it would be helpful to explain it upfront in the migration guidance including what’s the reasoning behind it and how it should be addressed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sameeragcommented, Jul 23, 2021

@waldekmastykarz Closing this. In case you have more concerns, please let us know and we can track it as needed.

1reaction
derisencommented, Jul 20, 2021

@waldekmastykarz apologies for delay. I’ve updated the migration guide with how to migrate the still valid refresh tokens and a note on destroying the older adal-node token cache afterwards here. Hope this captures your concern, but let me know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to migrate a Node.js app from ADAL to MSAL
However, you may use the valid refresh tokens your app obtained previously with ADAL Node in MSAL Node. See the section on refresh...
Read more >
MSAL VS ADAL | ID, Access, Refresh Tokens Explained
A big difference with an access token, refresh tokens are long-lived while access tokens are short-lived.
Read more >
Can't get refresh token from microsoft oauth, msal node js ...
1 Answer. Save this answer. Show activity on this post. It stores the refresh token in token cache, you can get refresh token...
Read more >
Central Repository: org/webjars/npm
babel__plugin-bugfix-v8-spread-parameters-in.../ - - babel__plugin-external-helpers/ - - babel__plugin-proposal-async-generator-funct.
Read more >
azure/msal-node
Microsoft Authentication Library for Node (msal-node). npm version codecov. Getting Started · AAD Docs · Library Reference. About; FAQ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found