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

Commit

Permalink
Merge pull request #332 from blockchain/iOS-login-fix
Browse files Browse the repository at this point in the history
iOS login
  • Loading branch information
jtormey authored Feb 20, 2017
2 parents 247cddf + 9317fee commit 028b708
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 028b708

Please sign in to comment.