Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issue where connecting after disconnecting would throw an exception #1958

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

KoenZomers
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

If you would run Disconnect-PnPOnline and then Connect-PnPOnline again, it would throw an exception. This regression was introduced by the changes done through #1919. This fixes it. It takes the stance that if you explicitly disconnect, all cached credentials will be wiped and connecting again will require credentials to be provided again. If this is not the desired situation, simply do not disconnect but directly connect to another sitecollection on the same tenant, and it will reuse the cached credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants