Set up a contact to help you recover your Apple ID in an emergencyIf you lose access to your Apple ID, a friend or family member can help you out in iOS 15 and iPadOS 15.
Forgetting your password or otherwise losing access to your Apple ID sounds like a nightmare. The last thing you want is to buy the best iPhone or a new iPad and not be able to connect our device to your Apple ID. Both iOS 15 and iPadOS 15 give you the ability to set up recovery contacts, which allow you to designate certain people to help you recover your Apple ID in case you lose access to your account for some reason.
How set up Account Recovery contacts
Before you get started, in order to set up any Account Recovery contacts, you'll need to make sure that all your devices logged in to your Apple ID are running the latest software. That includes any iPhones, iPads, Apple Watches, or Macs you have connected via your Apple ID.
Launch Settings from your Home Screen.
Tap your Apple ID banner at the top of your screen.
Tap Password & Security.
Tap Account Recovery.
Tap ...
Source:
Set up a contact to help you recover your Apple ID in an emergency