--- 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/latest/apis/order-status-api/require-login md: >- https://shopify.dev/docs/api/customer-account-ui-extensions/latest/apis/order-status-api/require-login.md --- # Require Login 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 ### Examples * #### Extension.jsx ##### Default ```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 [Learn more - Order status page](https://shopify.dev/docs/apps/customer-accounts/order-status-page)