Skip to content

Commit

Permalink
fix(dashboard): remove drive.metadata.readonly oauth scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Jan 15, 2025
1 parent 6d5d133 commit cfdd08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/pages/api/google/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { config } from '../../../utils/config';

const REDIRECT_URI = `${config.appUri}/api/google/oauth`;

const scopes = ['https://www.googleapis.com/auth/drive.file', 'https://www.googleapis.com/auth/drive.metadata.readonly'];
const scopes = ['https://www.googleapis.com/auth/drive.file'];
export const oauth2Client = new google.auth.OAuth2(config.googleClientId, config.googleClientSecret, REDIRECT_URI);

const OAUTH_URI = oauth2Client.generateAuthUrl({
Expand Down

0 comments on commit cfdd08a

Please sign in to comment.