mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-05-20 12:15:17 +00:00
COVIDSafe code from version 2.6
This commit is contained in:
parent
195798ddd5
commit
f7bfce7eb6
43 changed files with 910 additions and 144 deletions
|
@ -53,7 +53,7 @@ final class InfoViewController: UIViewController {
|
|||
silentNotificationsCountLabel.text = "\(UserDefaults.standard.integer(forKey: "debugSilentNotificationCount"))"
|
||||
apnTokenLabel.text = UserDefaults.standard.string(forKey: "deviceTokenForAPN")
|
||||
|
||||
let keychain = KeychainSwift()
|
||||
let keychain = KeychainSwift.shared
|
||||
let dateFormatter = DateFormatter()
|
||||
dateFormatter.dateStyle = .short
|
||||
dateFormatter.timeStyle = .medium
|
||||
|
@ -92,7 +92,7 @@ final class InfoViewController: UIViewController {
|
|||
}
|
||||
|
||||
@IBAction func requestUploadOTP(_ sender: UIButton) {
|
||||
let keychain = KeychainSwift()
|
||||
let keychain = KeychainSwift.shared
|
||||
guard let jwt = keychain.get("JWT_TOKEN") else {
|
||||
DLog("Error trying to upload when not logged in")
|
||||
return
|
||||
|
@ -199,7 +199,7 @@ final class InfoViewController: UIViewController {
|
|||
}
|
||||
|
||||
@IBAction func setReauthenticationNeeded(_ sender: Any) {
|
||||
let keychain = KeychainSwift()
|
||||
let keychain = KeychainSwift.shared
|
||||
keychain.set("corruptedjwt", forKey: "JWT_TOKEN", withAccess: .accessibleAfterFirstUnlock)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue