Update SecureStorageSample
This commit is contained in:
parent
7e3d7ba407
commit
72f4a3ebac
@ -13,6 +13,13 @@ struct SecureStorageSampleApp: App {
|
|||||||
init() {
|
init() {
|
||||||
_ = WatchConnectivityService.shared
|
_ = WatchConnectivityService.shared
|
||||||
Task {
|
Task {
|
||||||
|
// Configure encryption constants for the app
|
||||||
|
let config = EncryptionConfiguration(
|
||||||
|
masterKeyService: "SecureStorageSample",
|
||||||
|
masterKeyAccount: "AppMasterKey"
|
||||||
|
)
|
||||||
|
await StorageRouter.shared.updateEncryptionConfiguration(config)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
try await StorageRouter.shared.registerCatalog(AppStorageCatalog.self)
|
try await StorageRouter.shared.registerCatalog(AppStorageCatalog.self)
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user