-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied modification to the original plugin to prevent auto-login iss…
…ues with iOS
- Loading branch information
Alessandro Basso
authored and
Alessandro Basso
committed
Mar 16, 2020
1 parent
496efa0
commit a37d303
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
File: SecureKeyStore.m | ||
Function: writeToSecureKeyStore | ||
After initializing a KeychainItemWrapper called keychain, we added: | ||
|
||
KeychainItemWrapper * keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"cordova.plugins.SecureKeyStore" accessGroup:nil]; | ||
|
||
// Modification to the plugin to prevent autologin issue with iOS | ||
[keychain setObject:(id)kSecAttrAccessibleAfterFirstUnlock forKey:(id)kSecAttrAccessible]; | ||
// End modification | ||
|
||
NSString *error; | ||
|
||
This line sets the keychain access and helped to fix a log out issue affecting certain users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters