Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I made Vuepabase ~ [Repo](https://github.com/JMaylor/vuepabase) ~ [Live](https://vuepabase.netlify.app/) which is a template set up to use the following tech:
I'm also working on a Vue 3 + Supabase project recently and came across this issue (similar to 23 and 143). In short, after the user is signed in, supabase.auth.user() still returns null and seems like it takes supabase some time to change the user object. The author suggested to use onAuthStatusChanged() listener however I don't know where to declare it. I see that you call onAuthStatusChanged() in router.ts file, would it be different if I call it inside onMounted() method in App.vue, or after app.mount() in main.ts?
I'm also working on a Vue 3 + Supabase project recently and came across this issue (similar to 23 and 143). In short, after the user is signed in, supabase.auth.user() still returns null and seems like it takes supabase some time to change the user object. The author suggested to use onAuthStatusChanged() listener however I don't know where to declare it. I see that you call onAuthStatusChanged() in router.ts file, would it be different if I call it inside onMounted() method in App.vue, or after app.mount() in main.ts?
the repo: https://github.com/JMaylor/chirper-supabase
Related posts
- Ask HN: Microsoft crawls private links – how can this be legal?
- T3 Stack Template : Supabase (w/ Auth + DB) and Shadcn-UI Basic Setup
- How do you implement authentication with nextjs frontend and golang backend?
- Any up to date guide to do magic link auth with React Native?
- Securing a nextjs api with supabase auth