-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(auth): add missing is_anonymous field #355
Conversation
Sources/Auth/Types.swift
Outdated
self.role = try container.decodeIfPresent(String.self, forKey: .role) | ||
self.updatedAt = try container.decode(Date.self, forKey: .updatedAt) | ||
self.identities = try container.decodeIfPresent([UserIdentity].self, forKey: .identities) | ||
self.isAnonymous = try container.decodeIfPresent(Bool.self, forKey: .isAnonymous) ?? false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the fallback
b851ed1
to
ac1a8a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be one test that is failing, but is it a flaky test?
It should be a flaky test, but it is consistently failing for this PR, I'll try to fix it before merging it. |
471dc6d
to
900d26c
Compare
What kind of change does this PR introduce?
Close #354
What is the current behavior?
User
object does not have aisAnonymous
field.What is the new behavior?
Add missing
isAnonymous
, and default it to false for backward compatibility.Additional context
Add any other context or screenshots.