Skip to content

Commit

Permalink
Merge pull request #3744 from mbwimmer/W-15806367-logout-reason
Browse files Browse the repository at this point in the history
@W-15806367 - Logout reason additional cases.
  • Loading branch information
bbirman authored Jul 29, 2024
2 parents ab3e670 + bf4cf4d commit 872c987
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ - (NSString *)devInfoTitleString
[presentedViewController presentViewController:devInfo animated:NO completion:nil];
}],
[[SFSDKDevAction alloc]initWith:@"Logout" handler:^{
[[SFUserAccountManager sharedInstance] logout];
[[SFUserAccountManager sharedInstance] logout:SFLogoutReasonUserInitiated];
}],
[[SFSDKDevAction alloc]initWith:@"Switch user" handler:^{
SFDefaultUserManagementViewController *umvc = [[SFDefaultUserManagementViewController alloc] initWithCompletionBlock:^(SFUserManagementAction action) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ - (void)send:(SFRestRequest *)request requestDelegate:(id<SFRestRequestDelegate>
attributes[@"errorCode"] = [NSNumber numberWithInteger:error.code];
attributes[@"errorDescription"] = error.localizedDescription;
[SFSDKEventBuilderHelper createAndStoreEvent:@"userLogout" userAccount:nil className:NSStringFromClass([strongSelf class]) attributes:attributes];
[[SFUserAccountManager sharedInstance] logout];
[[SFUserAccountManager sharedInstance] logout:SFLogoutReasonUnexpected];
}];
} else {
[self enqueueRequest:request requestDelegate:requestDelegate shouldRetry:shouldRetry];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ - (void)viewDidDisappear:(BOOL)animated

- (void)actionLogout
{
[[SFUserAccountManager sharedInstance] logout];
[[SFUserAccountManager sharedInstance] logout:SFLogoutReasonUserInitiated];
}

- (void)actionSwitchUser:(SFUserAccount *)user
Expand Down

0 comments on commit 872c987

Please sign in to comment.