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.

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.

  1. Login
  2. Menambahkan komentar
  3. Logout
  4. Summary