Skip to content
authorizeOAuthApplicationMutation

Approve (or deny) a pending OAuth authorization request for the chosen business. On approval, re-validates the request, re-authorizes the viewer's access to businessId, and mints a one-time authorization code; on denial, builds an error=access_denied redirect. Either way redirectUrl is the absolute URL the browser should be sent to (the client's redirect_uri with a code or error). Requires an authenticated viewer.

Arguments

Returns

AuthorizeOAuthApplicationResult!

See AuthorizeOAuthApplicationResult for the full shape.

Try it

Example
Query
mutation AuthorizeOAuthApplication($input: AuthorizeOAuthApplicationInput!) {
  authorizeOAuthApplication(input: $input) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql
authorizeOAuthApplication