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
// only show warning when the user object is being accessed from the server
1609
-
console.warn(
1610
-
'Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.'
1611
-
)
1612
-
suppressWarning=true// keeps this proxy instance from logging additional warnings
1613
-
this.suppressGetSessionWarning=true// keeps this client's future proxy instances from warning
1614
-
}
1615
-
returnReflect.get(target,prop,receiver)
1616
-
},
1617
-
})
1618
-
currentSession=proxySession
1604
+
// Wrap the user object with a warning proxy on the server
1605
+
// This warns when properties of the user are accessed, not when session.user itself is accessed
'Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.'
445
+
)
446
+
suppressWarningRef.value=true
447
+
}
448
+
449
+
returnReflect.get(target,prop,receiver)
450
+
},
451
+
})
452
+
}
453
+
410
454
/**
411
455
* Deep clones a JSON-serializable object using JSON.parse(JSON.stringify(obj)).
0 commit comments