# Check a SMART authorize request

Canonical page: https://docs.ovok.com/api/smart-app-launch/check-a-smart-authorize-request

`POST /v1/smart/sign-in/request`

Checks a SMART app's `authorize` request before the user signs in, and names the app and the scopes it gets.

**Scope:** none; anyone may call it. The SMART sign-in page on www.ovok.com calls it with the parameters Ovok's
`authorize` handed it.

## Behaviour

- The request must pass the store's own `authorize` rules: a known `client_id`, a `redirect_uri` the app registered
  exactly, `response_type=code`, a scope, an `aud` on Ovok's host, and PKCE with `S256` unless the app is exempt.
  Otherwise 400 `SMART_AUTHORIZE_INVALID`, whose detail names the RFC 6749 error, and nothing reaches the app.
- An EHR launch (`launch` set) signs in at the store instead: 400.
- `scopes` are what the app will get: `patient/` writes are granted as reads.
- `cancel` is the app's `redirect_uri` with `error=access_denied` and its `state`.
