extract `getCustomerFromToken`