Skip to content

Make tokens in GIDGoogleUser KVO-compliant - #222

Merged
Alex-4-Git merged 9 commits into
GIDGoogleUser-restructurefrom
pin-AddKVOInGoogleUser
Sep 26, 2022
Merged

Make tokens in GIDGoogleUser KVO-compliant#222
Alex-4-Git merged 9 commits into
GIDGoogleUser-restructurefrom
pin-AddKVOInGoogleUser

Conversation

@Alex-4-Git

@Alex-4-GitAlex-4-Git commented Sep 20, 2022

Copy link
Copy Markdown
Contributor

To be consistent with GIDAuthentication, the token properties in GIDGoogleUser should be KVO-compliant.

Send KVO notifications when authState updates tokens.
Uses bit mask to verify KVO notifications are sent.
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m Outdated
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m Outdated
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m Outdated
Since we use NSObject automatic change notifications we can remove the tests for manual notifications emission.
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m Outdated
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m Outdated
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m Outdated
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m Outdated
Comment threadGoogleSignIn/Sources/GIDGoogleUser.m Outdated
Comment threadGoogleSignIn/Tests/Unit/GIDGoogleUserTest.m
Added a new test case `testUpdateAuthState_tokensAreNotChanged `
Comment threadGoogleSignIn/Tests/Unit/GIDGoogleUserTest.m Outdated
@Alex-4-Git
Alex-4-Git merged commit 405dc51 into GIDGoogleUser-restructureSep 26, 2022
@Alex-4-Git
Alex-4-Git deleted the pin-AddKVOInGoogleUser branch September 26, 2022 18:29
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Alex-4-Git@petea