I want to check my app login state. Want to do some api calls if it is logged in and conditionally rendering my home page based on the state and also it should be validated as an amp page.Is there some work around to achieve this?.
There's no workaround needed. You can use the amp-access component (doc / sample) for this purpose. It also supports OAuth2 based login flows.