Add debugging

This commit is contained in:
Ali
2021-06-28 22:06:25 +04:00
parent a23971c0ef
commit c4d10d07fe
5 changed files with 25 additions and 6 deletions

View File

@@ -551,7 +551,12 @@ public final class SharedAccountContextImpl: SharedAccountContext {
}
if self.activeAccountsValue!.primary == nil && self.activeAccountsValue!.currentAuth == nil {
self.beginNewAuth(testingEnvironment: false)
#if DEBUG
let testingEnvironment = true
#else
let testingEnvironment = false
#endif
self.beginNewAuth(testingEnvironment: testingEnvironment)
}
}))
})