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

Commit

Permalink
fix(Login): call callback and didFetchWallet for if sharedKey is known
Browse files Browse the repository at this point in the history
  • Loading branch information
kwgithubusername committed Feb 20, 2017
1 parent 247cddf commit 9317fee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ MyWallet.login = function (guid, password, credentials, callbacks) {
} else if (credentials.sharedKey) {
// If the shared key is known, 2FA and browser verification are skipped.
// No session is needed in that case.
return WalletNetwork.fetchWalletWithSharedKey(guid, credentials.sharedKey).then(initializeWallet);
return WalletNetwork.fetchWalletWithSharedKey(guid, credentials.sharedKey)
.then(cb('didFetch'))
.then(MyWallet.didFetchWallet)
.then(initializeWallet);
} else {
// If a new browser is used, wait for user to click verification link.
let authorizationRequired = (token) => () => {
Expand Down

0 comments on commit 9317fee

Please sign in to comment.