# Authenticated Account The API for interacting with an account in which the customer is fully authenticated. ## StandardApi The base API object provided to this and other `customer-account` extension targets. ### Docs_Standard_AuthenticatedAccountApi ### authenticatedAccount value: `AuthenticatedAccount` Information about the authenticated account. ### AuthenticatedAccount ### customer value: `StatefulRemoteSubscribable` Provides the customer information of the authenticated customer. ### purchasingCompany value: `StatefulRemoteSubscribable` Provides the company info of the authenticated business customer. If the customer is not authenticated or is not a business customer, this value is `undefined`. ### Customer Information about the authenticated customer. {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data). ### id value: `string` Customer ID. ### PurchasingCompany ### company value: `Company` Include information of the company of the logged in business customer. ### Company ### id value: `string` Company ID. ## useAuthenticatedAccountCustomer Returns the current authenticated `Customer`. The value is `undefined` if the customer isn't authenticated. ### UseAuthenticatedAccountCustomerGeneratedType Returns the current authenticated `Customer`. The value is `undefined` if the customer isn't authenticated. #### Returns: Customer | undefined export function useAuthenticatedAccountCustomer< Target extends RenderExtensionTarget, >(): Customer | undefined { const account = useApi().authenticatedAccount; return useSubscription(account.customer); } ### Customer Information about the authenticated customer. {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data). ### id value: `string` Customer ID. ## useAuthenticatedAccountPurchasingCompany Provides information about the company of the authenticated business customer. The value is `undefined` if a business customer isn't authenticated. ### UseAuthenticatedAccountPurchasingCompanyGeneratedType Provides information about the company of the authenticated business customer. The value is `undefined` if a business customer isn't authenticated. #### Returns: PurchasingCompany | undefined export function useAuthenticatedAccountPurchasingCompany< Target extends RenderExtensionTarget, >(): PurchasingCompany | undefined { const account = useApi().authenticatedAccount; return useSubscription(account.purchasingCompany); } ### PurchasingCompany ### company value: `Company` Include information of the company of the logged in business customer. ### Company ### id value: `string` Company ID.