<commit_before># shopify auth demo

Quick demo showing how to use [`shopify-token`](https://github.com/lpinca/shopify-token) with [express](https://expressjs.com) for the [shopify oauth flow](https://help.shopify.com/api/guides/authentication/oauth).

## Usage

First `cp sample.env .env`, then update `.env` with your shopify app's api key
and secret.

Then ...
```
npm install
npm start
```

Once the express app has started ...
```
open http://localhost:8080/?shop=YOUR_SHOP_NAME
```
... where `YOUR_SHOP_NAME` is the name of the shop you'd like your app to get
authorized to access. The shop name is reflected in the url used to access the
shop's storefront (`YOUR_SHOP_NAME.myshopify.com`).


This will initiate the OAuth flow and callout to the Shopify provider, prompting you to authenticate with the shop and explicitly grant the app access.
<commit_msg>Clarify usage<commit_after># shopify auth demo

Quick demo showing how to use [`shopify-token`](https://github.com/lpinca/shopify-token) with [express](https://expressjs.com) for the [shopify oauth flow](https://help.shopify.com/api/guides/authentication/oauth).

## Usage

First `cp sample.env .env`, then update `.env` with your shopify app's api key
and secret.

Then ...
```
source .env
npm install
npm start
```

Once the express app has started ...
```
open http://localhost:8080/?shop=YOUR_SHOP_NAME
```
... where `YOUR_SHOP_NAME` is the name of a shop that you administer.  This will initiate the OAuth flow and callout to the Shopify provider, prompting you to authenticate with the shop and explicitly grant the app access.  

The shop name is reflected in the url used to access the shop's storefront (`YOUR_SHOP_NAME.myshopify.com`).  For example, if you have admin level access to a shop named "autopints" (`autopints.myshopify.com`), you can grant your app access to the shop via `http://localhost:8080/?shop=autopints`.




{'fraction_non_alphanumeric': 0.10947368421052632, 'fraction_numerical': 0.00631578947368421, 'mean_word_length': 4.370056497175141, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2158509', 'n_tokens_mistral': 622, 'n_tokens_neox': 568, 'n_words': 230}