mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-05-20 12:15:17 +00:00
COVIDSafe code from version 2.4 (#47)
This commit is contained in:
parent
e577a9e7aa
commit
1478088e19
40 changed files with 1125 additions and 657 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue