daniel
daniel

Reputation: 966

Account temporarily unavailable due to bad or missing auth token

I got this message "Account temporarily unavailable due to bad or missing auth token" when I try to save to privateDatabase in CloudKit, using the CKDatabase.save(record:completionHandler).

It looks like the error that was posted about here on stackoverflow has reappeared.

The fix for that other problem was a bug in Apple's side.

Anyone have this problem recently and have a solution?

Upvotes: 4

Views: 2698

Answers (2)

Jack
Jack

Reputation: 2344

I was getting this repeatedly all of a sudden on an account that had worked fine before. Shutting things down and restarting didn't help.

This is xcode 13.3.1 using a simulator.

I went to the simulator menu: "Device" => "Erase all content and settings". I then logged in again via settings on the simulator. And then it was fine.

Upvotes: 3

RedPanda0147
RedPanda0147

Reputation: 101

You might find it strange, When I got this error,

  1. I went to settings, I did it in Simulator
  2. Profile Section
  3. Entered password.

After this, When I called the iCloud API again, It worked.

enter image description here

Upvotes: 8

Related Questions