NextAuth login with Youtube scopes
I've been trying to use nextauth to have the user consent to some scopes for the youtube Data API v3. Everything works fine but Google returns error.
These are my provider options. However, I have 2 problems.
And how do you set headers in NextAuth with GoogleProvider and prisma adapter?
Because I think the latter would also solve this issue.
Or even how I could debug this, because setting debu: true doesn't provide any useful info...
These are my provider options. However, I have 2 problems.
- If I don't include openid it won't let login, and since in the docs it is written I assume it has to be
- If I do set openid it throws CORS origin error
And how do you set headers in NextAuth with GoogleProvider and prisma adapter?
Because I think the latter would also solve this issue.
Or even how I could debug this, because setting debu: true doesn't provide any useful info...