Check if connection is bonded/paired

This is my environment:

  • IDE: VSC
  • SDK: NCS v2.2.0
  • iPhone 14 running iOS 16.6 as Central
  • nRF52-DK as Peripheral

When the Central connects to the Peripheral, I want the Peripheral to check if it has pairing/bonding info stored for that connection, and if so, set a flag.  What's the best was with NCS to check if a connection is a paired/bonded connection?

Best regards,

Mike