Skip to content

Commit

Permalink
Fixes sign in method caching issues aws-amplify#1469 and aws-amplify#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekSoft authored Mar 26, 2020
1 parent e8a63c6 commit 2549552
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,7 @@ private Runnable _signIn(final String username,

this.signInCallback = callback;
signInState = null;
mStore.set(SIGN_IN_MODE, SignInMode.SIGN_IN.toString());

return new Runnable() {
@Override
Expand Down Expand Up @@ -1594,6 +1595,8 @@ private Runnable _federatedSignIn(final String providerKey,
final boolean assignState) {

final Map<String, String> loginsMap = new HashMap<String, String>();
mStore.set(SIGN_IN_MODE, SignInMode.FEDERATED_SIGN_IN.toString());

try {
loginsMap.put(providerKey, token);

Expand Down

0 comments on commit 2549552

Please sign in to comment.