# SMART_AUTHORIZE_INVALID

Canonical page: https://docs.ovok.com/errors/smart-authorize-invalid

**HTTP 400.** Problem type: [`https://docs.ovok.com/errors/smart-authorize-invalid`](https://docs.ovok.com/errors/smart-authorize-invalid).

## What this means [#what-this-means]

The SMART app's `authorize` parameters fail the rules the SMART sign-in applies, so nothing is sent to the app. The
detail names the OAuth 2.0 error and the reason, for example `invalid_request: Invalid redirect URI`.

## Troubleshooting [#troubleshooting]

1. Check that `client_id` is the app's id and that `redirect_uri` is exactly one the app registered.
2. Send `response_type=code`, a PKCE `code_challenge` with `code_challenge_method=S256`, and an `aud` on Ovok's host.
3. Ask for `launch/patient` and no wildcard `user/` or `system/` scope. An EHR launch (`launch` set) signs in at the
   store instead.

## Retry safely [#retry-safely]

The same parameters fail the same way. Fix the app's request, then start the launch again.

## If the problem persists [#if-the-problem-persists]

Share the HTTP status, problem `type`, request path, response timestamp and `traceId` with your administrator or support contact. Remove access tokens, provider secrets and patient data first. The [Error responses guide](/errors) explains the response fields, and the [machine-code registry](/errors/machine-codes) lists every endpoint-specific type.
