How to Check if User is Logged In (Angular) to Conditionally Load JS Function in SuiteCRM 8

Hi everyone,

I need to determine whether a user is currently logged in or not based on that, I want to load a specific JavaScript function.

Is there any recommended way or API endpoint in SuiteCRM 8 to check the user’s authentication status from the Angular front-end?

@bhavin0070

That depends on what you are trying to achieve, for example if you are adding Actions to a module (drop down action type things), you can check the mode and only add the actions to certain modes (Check RecordActionManager in core that’s part of the Angular core code).

Mark