Skip to content

Commit db63447

Browse files
committed
Check Keychain for container instead of User
1 parent 78aec79 commit db63447

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.0.0...2.0.1)
1010

1111
__Fixes__
12-
- ParseUser should only encode email when User.current?.email is different from current user email ([#256](https://github.com/parse-community/Parse-Swift/pull/256)), thanks to [Corey Baker](https://github.com/cbaker6).
12+
- ParseUser should only encode email when User.current?.email is different from current user email ([#256](https://github.com/parse-community/Parse-Swift/pull/256)), thanks to [Corey Baker](https://github.com/cbaker6).
1313

1414
### 2.0.0
1515
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/1.11.0...2.0.0)

Sources/ParseSwift/Objects/ParseUser.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,8 @@ extension ParseUser {
949949
currentUser.hasSameObjectId(as: mutableSelf) == true {
950950
#if !os(Linux) && !os(Android)
951951
// swiftlint:disable:next line_length
952-
if let currentUserInKeychain: BaseParseUser = try? KeychainStore.shared.get(valueFor: ParseStorage.Keys.currentUser),
953-
currentUserInKeychain.email == mutableSelf.email {
952+
if let currentUserContainerInKeychain: CurrentUserContainer<BaseParseUser> = try? KeychainStore.shared.get(valueFor: ParseStorage.Keys.currentUser),
953+
currentUserContainerInKeychain.currentUser?.email == mutableSelf.email {
954954
mutableSelf.email = nil
955955
}
956956
#else

0 commit comments

Comments
 (0)