You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
thanks @robinWongM, pretty sure this bugfix is what I have needed to fix issues in my app. I have been tearing my hair out and was close to rage-quitting nuxt altogether. Essentially, I am using TRPC and Supabase and fetching the supabase user in my context.ts...
export async function createContext(event: H3Event){
let user: User | null = null;
if (!user) {
user = await serverSupabaseUser(event);
.... etc
...but intermittently, the user was coming back as null, presumeably because serverSupabaseUser was not getting the subabase key/refresh key via the cookie. This is apparently working now after upgrading to v0.8.0
6595a1d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @robinWongM, pretty sure this bugfix is what I have needed to fix issues in my app. I have been tearing my hair out and was close to rage-quitting nuxt altogether. Essentially, I am using TRPC and Supabase and fetching the supabase user in my context.ts...
...but intermittently, the user was coming back as null, presumeably because serverSupabaseUser was not getting the subabase key/refresh key via the cookie. This is apparently working now after upgrading to v0.8.0