Skip to content

Commit

Permalink
add requireLogin for CA order status api
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshen1990 committed Jan 23, 2024
1 parent a1a9a88 commit 21cb320
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/nine-points-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/ui-extensions': minor
'@shopify/ui-extensions-react': minor
---

add requireLogin for CA order status api
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ export interface OrderStatusApi<Target extends ExtensionTarget> {
* @example 'unstable'
*/
version: Version;

/**
* The requireLogin() method triggers login if the customer is viewing pre-authenticated Order Status Page.
*/
requireLogin: () => Promise<void>;
}

export interface OrderStatusBuyerIdentity {
Expand Down

0 comments on commit 21cb320

Please sign in to comment.