Credential Create For google Drive

Please give me the structure of the oauthTokenData json schema for creat credential for google drive.

[
    {
        "additionalProperties": false,
        "type": "object",
        "properties": {
            "clientId": {
                "type": "string"
            },
            "clientSecret": {
                "type": "string"
            },
            "oauthTokenData": {
                "type": "json"
            },
            "notice": {
                "type": "notice"
            }
        },
        "required": [
            "clientId",
            "clientSecret"
        ]
    }
]

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Rupam_Jana

Welcome to the community :raised_hands:

A quick way to find this is to connect a credential manually then use the cli to export the decrypted credential.

Luckily for this credential type though I have done it before you can find the information here: Google credentials stop working after a while - #13 by Jon

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.