# Device attestation worker
A worker for validating integrity tokens.

## Running locally
```txt
yarn
yarn dev
```

## Deploying
```txt
yarn deploy:staging
yarn deploy:prod
```

## Usage

### Android
The Android app should make a `POST` request.

The equivalent of this `curl`:

```sh
# staging
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"test": "data"}' \
  https://device-attestation-staging.suno.com/api/v1/android

# prod
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"test": "data"}' \
  https://device-attestation-prod.suno.com/api/v1/android
```

### iOS
WIP