const { $supabase } = useNuxtApp()
export const signIn = async () => {
const { data, error } = await $supabase.auth.signInWithOAuth({
provider: 'github'
})
if (error) {
console.error('Login error:', error);
}else{
return data;
}
}A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug.