Skip to content

Commit

Permalink
fix comment after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Mar 4, 2024
1 parent 9904a01 commit 205cb7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/Session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,10 @@ function signOutAndRedirectToSignIn(shouldReplaceCurrentScreen?: boolean, should
if (!isAnonymousUser()) {
// We'll only call signOut if we're not stashing the session and this is not a supportal session,
// otherwise we'll call the API to invalidate the autogenerated credentials used for infinite
// session. SignOut also clears the storage, so we can just return after calling it.
// session.
const isSupportal = isSupportAuthToken();
if (!isSupportal && !shouldStashSession) {
signOut();
return;
}

// The function redirectToSignIn will clear the whole storage, so let's create our onyx params
Expand Down

0 comments on commit 205cb7f

Please sign in to comment.