Leftovers
Leftovers
NNuxt
Created by Leftovers on 4/26/2025 in #❓・help
Supabase Auth getSession or onAuthStateChange to getUser
I've added supabase otp authentication and noticed in the console that I am getting the following error. 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.
4 replies