additional google oauth scope

im getting an error when i try to login with more scopes

    socialProviders: {
        google: {
            clientId: process.env.AUTH_GOOGLE_ID!,
            clientSecret: process.env.AUTH_GOOGLE_SECRET!,
            scope: ['email', 'profile', 'openid', 'https://www.googleapis.com/auth/calendar.events.owned', 'https://www.googleapis.com/auth/calendar.freebusy'],
        }
    },

i have this and the following scopes

but when i go through oauth i get an error
[0] 2025-02-16T06:58:42.094Z ERROR [Better Auth]:  {
[0]   error: 'invalid_client',
[0]   error_description: 'Unauthorized',
[0]   status: 401,
[0]   statusText: 'Unauthorized'
[0] }
image.png
Was this page helpful?