Can we have an option to suppress the warnings from calling getSession()?
#26890
Replies: 5 comments
|
Please can we suppress this warning. There's many valid reasons to use this function:
In my opinion you shouldn't hand-hold a user with such a warning. If your worry is that developers accidentally use getSession for sensitive tasks instead of getUser, then get rid of getSession and make it more semantic, like |
|
Adding my support to this. |
|
Being able to turn this off would make our debugging process much clearer. |
|
@JayBox325 this suppress option is available, see here |
Uh oh!
There was an error while loading. Please reload this page.
While I appreciate the great insight and discussion here, it would be helpful to have an option exposed to allow us to suppress the warnings through the supabase client. It could look something like this:
I've had to patch the
@supabase/auth-jsand@supabase/supabase-jspackages to get this behavior, but I would appreciate any input and guidance on introducing this to the libraries themselves for users that understand the security risks associated with this and have accounted for it in their architecture.All reactions