fix(google-scopes): removed unnecessary google scopes (#849)

* removed unnecessary google scopes

* bun run lint #849

---------

Co-authored-by: Adam Gough <adamgough@Mac.attlocal.net>
This commit is contained in:
Adam Gough
2025-08-02 14:59:46 -07:00
committed by GitHub
parent 6161bb8dbc
commit 9c3bcbabf9
9 changed files with 7 additions and 12 deletions

View File

@@ -43,7 +43,6 @@ const SCOPE_DESCRIPTIONS: Record<string, string> = {
'https://www.googleapis.com/auth/calendar': 'View and manage your calendar',
'https://www.googleapis.com/auth/userinfo.email': 'View your email address',
'https://www.googleapis.com/auth/userinfo.profile': 'View your basic profile info',
'https://www.googleapis.com/auth/spreadsheets': 'View and manage your Google Sheets',
'read:page:confluence': 'Read Confluence pages',
'write:page:confluence': 'Write Confluence pages',
'read:me': 'Read your profile information',

View File

@@ -36,7 +36,7 @@ export const GoogleSheetsBlock: BlockConfig<GoogleSheetsResponse> = {
required: true,
provider: 'google-sheets',
serviceId: 'google-sheets',
requiredScopes: ['https://www.googleapis.com/auth/spreadsheets'],
requiredScopes: [],
placeholder: 'Select Google account',
},
// Spreadsheet Selector

View File

@@ -388,7 +388,6 @@ export const auth = betterAuth({
scopes: [
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile',
'https://www.googleapis.com/auth/spreadsheets',
'https://www.googleapis.com/auth/drive.file',
],
prompt: 'consent',

View File

@@ -131,10 +131,7 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
providerId: 'google-sheets',
icon: (props) => GoogleSheetsIcon(props),
baseProviderIcon: (props) => GoogleIcon(props),
scopes: [
'https://www.googleapis.com/auth/spreadsheets',
'https://www.googleapis.com/auth/drive.file',
],
scopes: ['https://www.googleapis.com/auth/drive.file'],
},
'google-calendar': {
id: 'google-calendar',

View File

@@ -12,7 +12,7 @@ export const gmailDraftTool: ToolConfig<GmailSendParams, GmailToolResponse> = {
oauth: {
required: true,
provider: 'google-email',
additionalScopes: ['https://www.googleapis.com/auth/gmail.compose'],
additionalScopes: [],
},
params: {

View File

@@ -12,7 +12,7 @@ export const appendTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsAppendRe
oauth: {
required: true,
provider: 'google-sheets',
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
additionalScopes: [],
},
params: {
accessToken: {

View File

@@ -9,7 +9,7 @@ export const readTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsReadRespon
oauth: {
required: true,
provider: 'google-sheets',
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
additionalScopes: [],
},
params: {
accessToken: {

View File

@@ -12,7 +12,7 @@ export const updateTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsUpdateRe
oauth: {
required: true,
provider: 'google-sheets',
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
additionalScopes: [],
},
params: {
accessToken: {

View File

@@ -9,7 +9,7 @@ export const writeTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsWriteResp
oauth: {
required: true,
provider: 'google-sheets',
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
additionalScopes: [],
},
params: {
accessToken: {