OAuth for iCloud developer guide

Complete Apple Account Trusted-Device Approval

Tap Allow on a trusted device when the sign-in notification appears, then enter the six-digit code in the Figment setup prompt. No trusted device nearby? Apple can send the code by text or call.

Figment editorial teamPublished Updated Facts checked November 12, 2026

When you connect an Apple Account through Figment, a hosted Mac signs in to iCloud for the first time, and Apple issues a two-factor challenge. Approve it on a trusted device (an iPhone, iPad, Apple Watch, Apple Vision Pro, or Mac already signed in to that Apple Account), then enter the six-digit code in the Figment setup prompt. This page maps each stage of the challenge to the step that clears it.

Why does trusted-device approval appear?

Apple treats any new device sign-in as an identity check. Apple's two-factor authentication requires your password and a six-digit verification code every time an account signs in on a new device (Apple Support: Two-factor authentication for Apple Account). A trusted device is any iPhone, iPad, Apple Watch, Apple Vision Pro, or Mac on which you have already signed in with two-factor authentication (Apple Support: About trusted phone numbers and trusted devices). The hosted Mac Figment uses to run your connection counts as a new device on its first sign-in. Apple issues the challenge, and Figment surfaces it inside the connection setup screen.

No path skips this step, and that is intentional. The goal is to clear the challenge cleanly and move on.

What should I have ready before I start?

Confirm that at least one of the following is true for the Apple Account you plan to connect:

  • You have an iPhone, iPad, Apple Watch, Apple Vision Pro, or Mac signed in to that account with two-factor authentication turned on.
  • A trusted phone number is registered on the account and the SIM is active.

If neither is true, add a trusted phone number at appleid.apple.com before you start Figment setup. The approval challenge appears during setup, and there is no opportunity to add a factor mid-flow.

How do I complete the standard approval?

When the sign-in attempt reaches your trusted device, follow this sequence:

  1. A notification appears on your trusted device: "[Your name] is trying to sign in." It shows an approximate sign-in location.
  2. Tap or click Allow.
  3. A six-digit code appears on that screen.
  4. Enter that code into the Figment setup prompt before the timeout expires.

The code is single-use. Once you enter it correctly, Apple registers the hosted Mac as a trusted device for your account. You do not need to repeat this for the same connection unless you sign out, the Mac is reprovisioned, or you reset your Apple Account password (Apple Support).

Enter the code promptly. If the timeout passes, request a fresh code and do not reuse an expired one.

How do I get a code when no trusted device is nearby?

Apple can deliver the code to your trusted phone number instead (Apple Support: Get a verification code). During the approval prompt, select "Didn't get a code?" (the exact label may vary by OS version), then choose:

Text message
Apple sends the six-digit code to your registered number via SMS.
Phone call
Apple calls the number and reads the code aloud.

Your phone number must already be registered as a trusted number on your Apple Account. You cannot add a new number during an active sign-in challenge.

What do I do in each challenge state?

None of these states require a new Figment connection or cancelling setup, unless noted.

StateWhat you seeHow to clear
Allow notification waitingNotification on a trusted deviceTap Allow, enter the displayed six-digit code in the Figment setup prompt
Code expired or rejected"Incorrect verification code" or prompt timeoutDo not reuse the old code. Select "Didn't get a code?" to request a fresh one
No trusted device reachableNo notification received on any deviceSwitch to SMS or phone-call delivery to your registered trusted phone number
SMS not receivedWaiting for text that hasn't arrivedConfirm the correct number is registered; select the phone-call option as an alternative
Account temporarily locked"Account locked for security reasons"Follow Apple's on-screen recovery link; this process may take a few days or longer (Apple Support)

If you no longer have access to any registered factor, select "Can't use [phone number]" on the Apple sign-in screen to begin Apple's account recovery process. Do not start additional Figment connection attempts while recovery is pending, because that creates duplicate partial connections that must each be cleaned up.

What does Figment show after approval?

Figment tracks connection state per service. While the approval challenge is open, your connection shows needs_approval, and the dashboard does not advance until Apple's challenge is cleared. After a correct code is accepted:

  • Status moves from needs_approval to syncing as the Mac begins downloading iCloud data for each permitted service.
  • Status reaches ready per service once sync completes. Depending on account size, this can take minutes to hours.
  • If a service shows needs_approval again after the main sign-in completes, that service may need a separate permission grant on the Mac itself. See Grant the Mac Permissions Your Connector Needs.

If the status has not moved from needs_approval several minutes after the code was accepted, the approval itself may have succeeded while a downstream Mac permission blocks the next step. Check Mac permissions before opening a new connection. A second connection does not speed up a stalled first one. It creates a second needs_approval entry that also needs to be cleared.

If iMessage history looks incomplete once the connection reaches ready, that is a sync lag issue and not a sign-in problem. See Fix Missing iMessage History on a Connected Mac.

How do I start, and what does it cost?

Connect Apple Account to start setup. OAuth for iCloud is $14 or $29 per month per connected Apple Account, and sandbox access is free. For how your app receives scoped access to iCloud data after the account is connected, see OAuth for iCloud: Connect Apple Data to Your App.

Connect Apple data to your app

Register your app and start with synthetic sandbox data. Choose the permissions your app needs.

Connect Apple Account

Sandbox is free. Live access is $14 or $29 per connected Apple Account, per month.