diff --git a/Natives/authenticator/MicrosoftAuthenticator.m b/Natives/authenticator/MicrosoftAuthenticator.m index c85ac7d26d..5ab25a74b0 100644 --- a/Natives/authenticator/MicrosoftAuthenticator.m +++ b/Natives/authenticator/MicrosoftAuthenticator.m @@ -244,7 +244,6 @@ + (NSDictionary *)keychainQueryForKey:(NSString *)profile extraInfo:(NSDictionar (id)kSecClass: (id)kSecClassGenericPassword, (id)kSecAttrService: @"AccountToken", (id)kSecAttrAccount: profile, - (id)kSecAttrAccessible: (id)kSecAttrAccessibleWhenUnlockedThisDeviceOnly }.mutableCopy; if (extra) { [dict addEntriesFromDictionary:extra]; @@ -281,6 +280,7 @@ - (BOOL)setAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshT @"refreshToken": refreshToken, } requiringSecureCoding:YES error:nil]; NSDictionary *dict = [MicrosoftAuthenticator keychainQueryForKey:self.authData[@"xuid"] extraInfo:@{ + (id)kSecAttrAccessible: (id)kSecAttrAccessibleWhenUnlockedThisDeviceOnly, (id)kSecValueData: data }]; SecItemDelete((__bridge CFDictionaryRef)dict);