mwohlan

Results 14 comments of mwohlan

I was able to reproduce the "Auth session missing!" error: when multiple tabs of the same app are open with the onAuthStateChange listener active. Only the tab with the active...

> The throw is there to prevent a wrong behaviour, I don't think that removing it is a solution. @thorwebdev What do you think ? a simple return would also...

[This issue](https://github.com/supabase/supabase/discussions/2842) from the supabase repository also seems to be related. Shouldn't the module already do that for you, what you are doing in your pinia store ? The module...

I think this is a supabase timing issue. This example call: ```js await client.auth.signIn() navigateTo('auth protected route') ``` is done before the user is set here: ```js // Once Nuxt...

Current workaround for me that works with auth protected routes and magic links: middleware ```js export default defineNuxtRouteMiddleware((to) => { const user = useSupabaseUser() if (!(user.value)) //reroute to login saving...

> Thanks for that, I'll try it too. Does that solves the session error issue too ? @ColinEspinas I commented on that in your original issue [#25](https://github.com/nuxt-community/supabase-module/issues/25#issuecomment-1106717392). Maybe they shouldnt...

> I think this is a supabase timing issue. This example call: > > ```js > await client.auth.signIn() > navigateTo('auth protected route') > ``` > > is done before the...

I think useRuntimeConfig is missing in the API References.

Seems to be fixed @danielroe . Updated Reproduction with edge channel: [https://stackblitz.com/edit/github-2vxhdz-a4pukx?file=app.vue](https://stackblitz.com/edit/github-2vxhdz-a4pukx?file=app.vue)

Can confirm the issue with netlify even with rc7. Gonna wait a bit for op to post a reproduction first.