SkygearIO / skygear-SDK-iOS

Skygear SDK for iOS
https://skygear.io
Other
10 stars 28 forks source link

WIP: Store access token and current user record in keychain #237

Closed carmenlau closed 6 years ago

carmenlau commented 6 years ago

connect skygeario/features#250

To enable using keystore for current user data

let config = SKYConfiguration()
config.endPointAddress = URL.init(string: endpoint)!
config.apiKey = apiKey
config.encryptCurrentUserData = true
SKYContainer.default().configure(config)
carmenlau commented 6 years ago

The PR is not ready yet, the keychain library fail to build the MacOS app. Will check it later and update.

Steven-Chan commented 6 years ago

I start thinking this feature should be mandatory. The current setting is almost transparent to both developer and user.

Meanwhile, I think what configuration skygear SDK (both iOS and Android) should provide is keychain or keystore configuration, like biometric authentication, cloud sync.

chpapa commented 6 years ago

I start thinking this feature should be mandatory. The current setting is almost transparent to both developer and user.

Actually I think so...