Skip to content

Personal AI, On Personal Devices

Python

fix: split Google OAuth into separate Client ID and Client Secret fields

Jon Saad-Falconfcc146b050e3
diff --git a/frontend/src/types/connectors.ts b/frontend/src/types/connectors.ts
index 7ecd9025..7f16ef50 100644
--- a/frontend/src/types/connectors.ts
+++ b/frontend/src/types/connectors.ts
@@ -210,11 +210,12 @@ export const SOURCE_CATALOG: ConnectorMeta[] = [
urlLabel: 'Open Credentials',
},
{
- label: 'Copy the Client ID and Client Secret, then paste them below',
+ label: 'Copy the Client ID and Client Secret from your OAuth client, then paste each one below',
},
],
inputFields: [
- { name: 'token', placeholder: 'Client ID:Client Secret', type: 'password' },
+ { name: 'email', placeholder: 'Client ID (e.g. 123456-abc.apps.googleusercontent.com)', type: 'text' },
+ { name: 'password', placeholder: 'Client Secret', type: 'password' },
],
},
{
@@ -243,11 +244,12 @@ export const SOURCE_CATALOG: ConnectorMeta[] = [
urlLabel: 'Open Credentials',
},
{
- label: 'Copy the Client ID and Client Secret, then paste them below',
+ label: 'Copy the Client ID and Client Secret from your OAuth client, then paste each one below',
},
],
inputFields: [
- { name: 'token', placeholder: 'Client ID:Client Secret', type: 'password' },
+ { name: 'email', placeholder: 'Client ID (e.g. 123456-abc.apps.googleusercontent.com)', type: 'text' },
+ { name: 'password', placeholder: 'Client Secret', type: 'password' },
],
},
{
@@ -276,11 +278,12 @@ export const SOURCE_CATALOG: ConnectorMeta[] = [
urlLabel: 'Open Credentials',
},
{
- label: 'Copy the Client ID and Client Secret, then paste them below',
+ label: 'Copy the Client ID and Client Secret from your OAuth client, then paste each one below',
},
],
inputFields: [
- { name: 'token', placeholder: 'Client ID:Client Secret', type: 'password' },
+ { name: 'email', placeholder: 'Client ID (e.g. 123456-abc.apps.googleusercontent.com)', type: 'text' },
+ { name: 'password', placeholder: 'Client Secret', type: 'password' },
],
},
{
@@ -329,7 +332,8 @@ export const SOURCE_CATALOG: ConnectorMeta[] = [
},
],
inputFields: [
- { name: 'token', placeholder: 'Client ID:Client Secret', type: 'password' },
+ { name: 'email', placeholder: 'Client ID (e.g. 123456-abc.apps.googleusercontent.com)', type: 'text' },
+ { name: 'password', placeholder: 'Client Secret', type: 'password' },
],
},
{