For Android: You should not use Preferences DataStore as it is store data as plain text & No encryption of the data. It can be easily accessed by other users and apps. Use should use EncryptedSharedPreferences with strong master keys.
For iOS: You should use Keychain Services.
Use libraries for both Android and iOS such as KotlinCrypto or Kotlinx-serialization with proper encryption implementation.