Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

To fix error on Firefox 85.0.1 (Ubuntu 20.04)

PM9ca4fb29d8b5
diff --git a/examples/javascript-auth/index.js b/examples/javascript-auth/index.js
index 67c2089761c..5b16fdf6043 100644
--- a/examples/javascript-auth/index.js
+++ b/examples/javascript-auth/index.js
@@ -56,16 +56,10 @@ const logInSubmitted = (event) => {
}
const fetchUserDetails = () => {
- supabase.auth
- .user()
- .then((response) => {
- alert(JSON.stringify(response))
- })
- .catch((err) => {
- alert(err.response.text)
- })
+ alert(JSON.stringify(supabase.auth.user()))
}
+
const logoutSubmitted = (event) => {
event.preventDefault()