mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
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:
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user