I understand from your post that you have a prompt on your iPhone screen to approve it from another device. What you are describing sounds like you are using either Two-factor authentication or iCloud Keychain. The following article has information about Two-factor authentication and iCloud Keychain which you may find helpful: