Realm Sync with API Key auth

I’m new to Mongo / Realm and trying to set up Realm Sync with the partition-based option. My use case is team-based data sharing and sync. All of the partition-based sync tutorials use email / password auth. Is it possible to use partition-based sync with API Key auth?

Ideally would love to find an iOS SwiftUI example to follow.

Thanks very much