Skip to content
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

@W-14212091 Remove userLogout AILTN event #3815

Closed
wants to merge 1 commit into from

Conversation

Crebs
Copy link
Contributor

@Crebs Crebs commented Jan 27, 2025

Based on discussion here and in stand up, the event doesn't work and it wouldn't be possible to use AILTN to log the scenario where the user's token is revoked because we need the token to publish to AILTN

What to change

Remove this line:

[SFSDKEventBuilderHelper createAndStoreEvent:@"userLogout" userAccount:nil className:NSStringFromClass([strongSelf class]) attributes:attributes];

@Crebs Crebs requested review from bbirman and wmathurin January 27, 2025 18:13
@@ -494,7 +493,6 @@ - (void)createAndStoreLogoutEvent:(NSError *)error user:(SFUserAccount*)user {
NSMutableDictionary *attributes = [[NSMutableDictionary alloc] init];
attributes[@"errorCode"] = [NSNumber numberWithInteger:error.code];
attributes[@"errorDescription"] = error.localizedDescription;
[SFSDKEventBuilderHelper createAndStoreEvent:@"userLogout" userAccount:user className:NSStringFromClass([self class]) attributes:attributes];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't notice the second line before 👍 . Looks like the containing method isn't needed either?

@Crebs Crebs closed this Jan 27, 2025
@Crebs Crebs reopened this Jan 27, 2025
@Crebs Crebs closed this Jan 27, 2025
Sign up for free to 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