From main domain to Bubble, check auth

We have users sign up and use our site built in the typical html/css/js.

I’d like our team to as well leverage bubble for a percentage of users that receive project dashboard, as well as some chat functionality. Is there a way to tell when we link someone from our main site to then being sent to bubble if they are logged in or not?