# TwitchS2SAuthExample

Test script used to validate S2Sv1 access token fetching. This will generally be
used when developing native language clients for TwitchS2SAuth.

## Setup


### AWS Organizations

You will need AWS credentials in an AWS Account in the
[Twitch AWS Organization].

### IAM Permissions

You will need the following IAM permission.

```
{
  "action": "execute-api:Invoke",
  "resource": [
    "arn:aws:execute-api:*:985585625942:*"
  ]
}
```

## Usage

```
go run ./cmd/TwitchS2SAuthExample
```


[Twitch AWS Organization]: https://wiki.twitch.com/display/SEC/AWS+Orgs+Expectation
