---
title: "Google Drive Oauth Redirect"
method: GET
path: "/storage-providers/google-drive/callback"
tags: ["storage-providers"]
---

# Google Drive Oauth Redirect

`GET /storage-providers/google-drive/callback`

OAuth2 redirect handler — Google sends the user here after authorization.

This endpoint runs inside the popup window. It renders a small HTML page
that sends the authorization code back to the opener (main app) via
postMessage, then closes itself.

## Query parameters

- `code` string
- `state` string
- `error` string

## Response `200`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
