Skip to content

Commit 4f21f93

Browse files
authored
fix: typo in warning message (#975)
## What kind of change does this PR introduce? Fix a small typo in the warning message when using user object from the server.
1 parent cb052a9 commit 4f21f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GoTrueClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ export default class GoTrueClient {
11091109
if (!suppressWarning && prop === 'user') {
11101110
// only show warning when the user object is being accessed from the server
11111111
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.'
11131113
)
11141114
suppressWarning = true // keeps this proxy instance from logging additional warnings
11151115
this.suppressGetSessionWarning = true // keeps this client's future proxy instances from warning

0 commit comments

Comments
 (0)