From a36b1c58c6eeecd1c211bcdfc19e1370c903bf9a Mon Sep 17 00:00:00 2001 From: David Pietrocola Date: Mon, 21 Oct 2024 23:19:36 -0400 Subject: [PATCH] fix: typo in warning message --- src/GoTrueClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GoTrueClient.ts b/src/GoTrueClient.ts index 67ea60a8..0e0c880d 100644 --- a/src/GoTrueClient.ts +++ b/src/GoTrueClient.ts @@ -1109,7 +1109,7 @@ export default class GoTrueClient { if (!suppressWarning && prop === 'user') { // only show warning when the user object is being accessed from the server console.warn( - '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.' + '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.' ) suppressWarning = true // keeps this proxy instance from logging additional warnings this.suppressGetSessionWarning = true // keeps this client's future proxy instances from warning