Create a login-requiring AMP page
Important: this documentation is not applicable to your currently selected format email!
Some user interactions with a page, such as leaving a comment, could be conditioned by a login flow. You can implement a login flow with AMP by using the amp-access
component combined with the amp-form
component.
TIP – To see a sample implementation, visit the comment section sample at ampbyexample.com.
The comment section sample combines amp-access
and amp-form
to create a comment section which is enabled only when an user has logged in. In order to explain how this sample works, let's follow the set of actions that will be performed once you land on the page.