How to connect with a BLE device having a passkey using LoPy

I have a BLE device with a numeric authentication like a pairing key or passkey to connect to it. In the example illustrated in the documentation, I could not find any API or any mention of the passkey or pairing key. How to achieve so?