Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
fix pin method
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Aug 27, 2020
1 parent 556ee44 commit 22d50b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion connectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1555,14 +1555,16 @@ export default class ConnectionManager {

const credentialProvider = this.credentialProvider();

const instance = this;

return exchangePinInternal(this, pinInfo).then(result => {

const credentials = credentialProvider.credentials();
credentials.ConnectAccessToken = result.AccessToken;
credentials.ConnectUserId = result.UserId;
credentialProvider.credentials(credentials);

return ensureConnectUser(credentials);
return ensureConnectUser(instance, credentials);
});
}

Expand Down

0 comments on commit 22d50b3

Please sign in to comment.