From 6771325bb326744f2611c9b7f6306dfe6c56b6a4 Mon Sep 17 00:00:00 2001 From: Luan Date: Wed, 4 Dec 2024 14:37:30 -0300 Subject: [PATCH] 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. --- examples/auth/custom-oauth2-creds/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/auth/custom-oauth2-creds/index.ts b/examples/auth/custom-oauth2-creds/index.ts index 824e0728..43c59be4 100644 --- a/examples/auth/custom-oauth2-creds/index.ts +++ b/examples/auth/custom-oauth2-creds/index.ts @@ -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',