I am trying to have new users register to my site from an AMP page. However, if the user is a logged-in member, I do not want to show a meter/or registration wall.
Currently, I can check the log-in status via cookies or tokens, but without javascript, and not making a call to an endpoint to check the user's log-in state, the AMP page does not know whether the user is logged-in or not.
I know that the reader_id that is set by the AMP ecosystem can see if a user is logged-in or not, but that is not the case if the logged-in user arrived on the AMP page from a non-AMP page or non-AMP initiated log-in page.
Is there any way for my AMP page to know if a user is logged in through cookies, tokens, API calls? And subsequently add logic to show/hide the registration wall based on the logged-in state?