Closed prpanto closed 8 months ago
To fix this, go to server/routes/auth/auth0.get.ts and you can add your scopes there:
export default oauth.auth0EventHandler({
config: {
emailRequired: true,
scope: ['email', 'profile', 'openid'] // USE AN ARRAY FOR YOUR SCOPES
},
async onSuccess(event, res) {
console.log('res', res)
return sendRedirect(event, '/')
}
})
Hope this helps
Thanks for reply @monkemedia The solution for this was to add all the auth url path like:
scope: [
'email',
'profile',
'https://www.googleapis.com/auth/youtube',
'https://www.googleapis.com/auth/youtubepartner',
'https://www.googleapis.com/auth/youtube.readonly',
'https://www.googleapis.com/auth/youtube.force-ssl',
'https://www.googleapis.com/auth/youtubepartner-channel-audit',
'https://www.googleapis.com/auth/youtube.third-party-link.creator',
'https://www.googleapis.com/auth/youtube.channel-memberships.creator',
],
Im try to use the youtube service and i try to add the some more scopes like
youtube.readonly
, etc... When I did this I have aninvalid_scope
error. Do you have any solution or something to advice?