listd is a Full Stack App that will allow users to create, share and watch lists of YouTube channels. This app is being built LIVE on Twitch https://twitch.tv/codinggarden
Originally posted by **omar2205** February 20, 2023
If we are building a YouTube feed, it would be helpful for the user to see the YouTube channels they have subscribed to.
I was able to add more scopes to the auth with this
```ts
Google({
clientId: GOOGLE_CLIENT_ID,
clientSecret: GOOGLE_CLIENT_SECRET,
authorization: {
params: {
scope:
'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/youtube.readonly',
}
}
}),
```
I'm not sure if this will count towards our API usage.
We can get extra stuff like access_token and id_token like this:
I want to avoid asking for youtube permissions unless the user wants to use their existing subscriptions. Users should also be able to log in and use the app without sharing their subscriptions.
Discussed in https://github.com/CodingGarden/listd/discussions/64
We can get extra stuff like access_token and id_token like this:
To get a user channels ref: https://developers.google.com/youtube/v3/docs/subscriptions/list
Refresh token https://authjs.dev/guides/basics/refresh-token-rotation