sealed class DittoIdentity
The various identity configurations that you can use when initializing a DittoSyncKit instance.
Development |
An identity to be used while in development when you want to control either or both of the app name and the site ID of the peer. class Development : DittoIdentity |
Production |
The identity to use when in production. This accepts a certificate bundle, which includes identity information, as a base 64 encoded string. class Production : DittoIdentity |
SharedKey |
An identity where every device knows the same secret key. This is a simplistic authentication mode which is normally only suitable for private apps where all the users and devices are trusted. class SharedKey : DittoIdentity |