Skip to content

Commit

Permalink
fix rename isAuthenticated to hasAuthToken
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Mar 12, 2024
1 parent 284b276 commit 29dfda4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ function toggleEmojiReaction(
function openReportFromDeepLink(url: string) {
const reportID = ReportUtils.getReportIDFromLink(url);

if (reportID && !Session.isAuthenticated()) {
if (reportID && !Session.hasAuthToken()) {
// Call the OpenReport command to check in the server if it's a public room. If so, we'll open it as an anonymous user
openReport(reportID, [], {}, '0', true);

Expand Down
4 changes: 2 additions & 2 deletions src/libs/actions/Session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function hasStashedSession(): boolean {
/**
* Checks if the user is authenticated
*/
function isAuthenticated(): boolean {
function hasAuthToken(): boolean {
return !!session.authToken;
}

Expand Down Expand Up @@ -994,7 +994,7 @@ export {
validateTwoFactorAuth,
waitForUserSignIn,
canAccessRouteByAnonymousUser,
isAuthenticated,
hasAuthToken,
signInWithSupportAuthToken,
isSupportAuthToken,
hasStashedSession,
Expand Down

0 comments on commit 29dfda4

Please sign in to comment.