supabase icon indicating copy to clipboard operation
supabase copied to clipboard

how to use useSupabaseClient in my custom composable ?

Open sanba-anass opened this issue 2 years ago • 2 comments

Version

@nuxtjs/supabase: nuxt:

Reproduction Link

Steps to reproduce

What is Expected?

What is actually happening?

[nuxt] 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. Find out more at https://nuxt.com/docs/guide/concepts/auto-imports#using-vue-and-nuxt-composables.

sanba-anass avatar Oct 07 '23 21:10 sanba-anass

What issues do you see when you try using it within your custom composable?

This might be the solution you're looking for - https://github.com/nuxt-modules/supabase/issues/232

CodyBontecou avatar Oct 08 '23 22:10 CodyBontecou