How can i get the user login status?

I have a special page create by PHP.
This is currently shown in the iframe in the html mode of the Grafana Text panel
However, this method is accessible to anyone who knows the URL of the iframe.
I want to show only users who are logged in to Grafana.

When I logged in, I noticed that the user browser cookie had a field called ‘grafana_user’
At first I tried to use this to check the login status of Grafana
However, I found out that there is a problem if the server and domain are different.

Is there any way to know the user’s login status via Grafana API?

Currently my Grafana is setup to login with Google OAuth2.

not from the html text panel

you will need to develop a custom planel plugin