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
Copy file name to clipboardExpand all lines: src/GoTrueClient.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1109,7 +1109,7 @@ export default class GoTrueClient {
1109
1109
if(!suppressWarning&&prop==='user'){
1110
1110
// only show warning when the user object is being accessed from the server
1111
1111
console.warn(
1112
-
'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 many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.'
1112
+
'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.'
1113
1113
)
1114
1114
suppressWarning=true// keeps this proxy instance from logging additional warnings
1115
1115
this.suppressGetSessionWarning=true// keeps this client's future proxy instances from warning
0 commit comments