COVIDSafe code from version 2.4 (#47)

This commit is contained in:
COVIDSafe Support 2021-03-18 14:16:35 +11:00 committed by covidsafe-support
parent e577a9e7aa
commit 1478088e19
40 changed files with 1125 additions and 657 deletions

View file

@ -222,8 +222,8 @@ class HomeViewController: UIViewController, HomeDelegate {
func updateJWTKeychainAccess() {
let hasUpdatedKeychainAccess = UserDefaults.standard.bool(forKey: "HasUpdatedKeychainAccess")
let keychain = KeychainSwift()
if (!hasUpdatedKeychainAccess) {
let keychain = KeychainSwift()
if let jwt = keychain.get("JWT_TOKEN") {
if (keychain.set(jwt, forKey: "JWT_TOKEN", withAccess: .accessibleAfterFirstUnlock)) {
DLog("Updated access class on JWT")
@ -440,7 +440,6 @@ class HomeViewController: UIViewController, HomeDelegate {
}
func showTokenExpiredMessage() {
UserDefaults.standard.set(true, forKey: reauthenticationNeededKey)
toggleViews()
}