Storefront API associate customer to cart

As per this Storefront API checkout documentation, you can use the Multipass resource to log in customers and redirect them to a web checkout link. This functionality is available for Shopify plus merchants only.