{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pocketbasecloud-com/json-schema/pocketbasecloud-com-post-api-collections-collectionidorname-auth-with-oauth2-request-schema.json",
  "title": "PostApiCollectionsCollectionidornameAuthWithOauth2Request",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/pocketbasecloud-com-openapi-generated.yml#/components/schemas/PostApiCollectionsCollectionidornameAuthWithOauth2Request",
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "description": "The name of the OAuth2 client provider."
    },
    "code": {
      "type": "string",
      "description": "The authorization code returned from the initial request."
    },
    "codeVerifier": {
      "type": "string",
      "description": "The code verifier sent with the initial request."
    },
    "redirectUrl": {
      "type": "string",
      "description": "The redirect url sent with the initial request."
    },
    "createData": {
      "type": "object",
      "description": "Optional data for creating the auth record on sign‑up."
    }
  },
  "required": [
    "provider",
    "code",
    "codeVerifier",
    "redirectUrl"
  ]
}