Skip to content

Commit

Permalink
MLIBZ-217 fixing issue with storing credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
edatkinvey committed Apr 21, 2015
1 parent f9ff4ee commit 72d5689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Kinvey-Xamarin/Auth/CredentialManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private CredentialManager() { }
/// <param name="store">Store.</param>
public CredentialManager(ICredentialStore store)
{
if (credentialStore == null)
if (store == null)
{
this.credentialStore = new InMemoryCredentialStore();
}
Expand Down
4 changes: 1 addition & 3 deletions Kinvey-Xamarin/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,8 @@ public override JObject onRedirect (string newLocation)
if (codeIndex == -1){
throw new KinveyException("Redirect does not contain `code=`, was: " + newLocation);
}



String accesstoken = newLocation.Substring (codeIndex + 5);

return user.getMICToken (accesstoken).Execute();
}
}
Expand Down

0 comments on commit 72d5689

Please sign in to comment.