Start a new topic
Answered

User.refresh() is broken in SDK 3.5.0

With the latest iOS SDK 3.5.0, there is a new method User.refresh() appears to be broken.  When calling the new function (even right after logging in a user), I get an HTTP error: Invalid credentials.  Please retry your request with correct credentials.


Again, this error is thrown when calling the method, even after successfully logging in a user.


Best Answer
Chris,

I tried the below code and it worked fine. I am not able to reproduce the issue.


    Kinvey.sharedClient.activeUser?.refresh() { result in
        switch result {
        case .success:
            //succeed
        case .failure(let error):
            //failed
        }
    }

 


Can you try again and if it fails, send me your relevant code and timestamp of failure?



Thanks,

Pranav

Kinvey

 

1 Comment

Answer
Chris,

I tried the below code and it worked fine. I am not able to reproduce the issue.


    Kinvey.sharedClient.activeUser?.refresh() { result in
        switch result {
        case .success:
            //succeed
        case .failure(let error):
            //failed
        }
    }

 


Can you try again and if it fails, send me your relevant code and timestamp of failure?



Thanks,

Pranav

Kinvey

 

Login or Signup to post a comment