> ## Documentation Index
> Fetch the complete documentation index at: https://rollout.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Handle Cookie-Bound OAuth Redirect



## OpenAPI

````yaml /openapi/rollout.json get /auth/grant-redirect
openapi: 3.0.3
info:
  title: Universal API Documentation
  description: Development documentation
  version: '1.0'
servers:
  - url: https://universal.rollout.com/api
security: []
paths:
  /auth/grant-redirect:
    get:
      summary: Handle Cookie-Bound OAuth Redirect
      operationId: getAuthGrant-redirect
      parameters:
        - name: code
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: >-
            A page that posts the outcome to the window that opened it and
            closes, or, with no opener, redirects to the return URI
          content:
            text/html:
              schema:
                type: string
        '400':
          description: >-
            A page asking the user to start again, when the state cookie is
            missing or expired
          content:
            text/html:
              schema:
                type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.