I have login up and running using nuxtjs/supabase module and google provider.
The next step is to add access to a google spreadsheet. For this i have configured the google cloud project to have access to the spreadsheet api. As i need to give a logged in user access to a spreadsheet that normally would not have, i need to authorize the user by login with a scope.
I have seen that using supabase-js directly in the createClient there would be the possibility to it like
const supabaseClient = createClient(
process.env.SUPABASE_URL,
process.env.SUPABASE_KEY,
{
auth: {
// Setzen Sie hier die zusätzlichen Scopes für Google OAuth
scopes: 'https://www.googleapis.com/auth/spreadsheets',
},
}
);
Is there a builtin way to tell the module doing that?