File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ actor Cache {
4242
4343 private func initializeCacheProvider( ) {
4444 let identifier = contructCacheIdentifier ( )
45-
45+
4646 guard identifier. isEmpty == false else {
4747 DataConnectLogger . error ( " CacheIdentifier is empty. Caching is disabled " )
4848 return
@@ -72,7 +72,7 @@ actor Cache {
7272 DataConnectLogger . error ( " Unable to setup auth change listeners since DataConnect is nil " )
7373 return
7474 }
75-
75+
7676 authChangeListenerProtocol = Auth . auth ( app: dataConnect. app) . addStateDidChangeListener { _, _ in
7777 self . initializeCacheProvider ( )
7878 }
@@ -84,7 +84,7 @@ actor Cache {
8484 DataConnectLogger . error ( " Unable to construct a cache identifier since DataConnect is nil " )
8585 return " "
8686 }
87-
87+
8888 let identifier =
8989 " \( config. storage) - \( dataConnect. app. options. projectID!) - \( dataConnect. app. name) - \( dataConnect. connectorConfig. serviceId) - \( dataConnect. connectorConfig. connector) - \( dataConnect. connectorConfig. location) - \( Auth . auth ( app: dataConnect. app) . currentUser? . uid ?? " anon " ) - \( dataConnect. settings. host) "
9090 let encoded = identifier. sha256
You can’t perform that action at this time.
0 commit comments