chore(oauth/examples): Remove unneeded scopes

For those getting errors even after removing this:
If you had previously signed in using the same OAuth credentials, you'll have to go to "account" > "security" > "See all connections" (third party apps) and then remove the previously granted access.
This commit is contained in:
Luan
2024-12-04 14:37:30 -03:00
parent d10fe6834a
commit 6771325bb3

View File

@@ -1,5 +1,5 @@
import express from 'express';
import { Innertube, UniversalCache, YTNodes } from 'youtubei.js';
import { Innertube, UniversalCache } from 'youtubei.js';
import { OAuth2Client } from 'google-auth-library';
const app = express();
@@ -65,8 +65,7 @@ app.get('/', async (_req, res) => {
"http://gdata.youtube.com",
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.force-ssl",
"https://www.googleapis.com/auth/youtube-paid-content",
"https://www.googleapis.com/auth/accounts.reauth",
"https://www.googleapis.com/auth/youtube-paid-content"
],
include_granted_scopes: true,
prompt: 'consent',