--- title: Require Login description: The API for interacting with the authentication. api_version: 2025-10 api_name: customer_account_ui_extensions source_url: html: >- https://shopify.dev/docs/api/customer-account-ui-extensions/2025-10-rc/apis/order-status-api/require-login md: >- https://shopify.dev/docs/api/customer-account-ui-extensions/2025-10-rc/apis/order-status-api/require-login.txt --- # Require LoginAPI The API for interacting with the authentication. ## OrderStatusApi The API object provided to this and other `customer-account.order-status` extension targets. * requireLogin () => Promise\ required The requireLogin() method triggers login if the customer is viewing pre-authenticated Order status page. ## Examples Call requireLogin before triggering an action Call requireLogin before triggering an action ### Examples * #### Call requireLogin before triggering an action ##### Description Call requireLogin before triggering an action ##### Preact ```jsx import '@shopify/ui-extensions/preact'; import {render} from 'preact'; export default async () => { render(, document.body); }; function Extension() { async function reportAnIssue() { await shopify.requireLogin(); // send a request to backend } return ( Report an issue ); } ``` ## Related [![](https://shopify.dev/images/icons/32/growth.png)![](https://shopify.dev/images/icons/32/growth-dark.png)](https://shopify.dev/docs/apps/customer-accounts/order-status-page) [Learn moreOrder status page](https://shopify.dev/docs/apps/customer-accounts/order-status-page)