Skip to content

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

Adds error handling docs for user management

Paul Copplestone62c585d68609
diff --git a/web/docs/library/user-management.mdx b/web/docs/library/user-management.mdx
index e422d40283a..32e3f8a60ba 100644
--- a/web/docs/library/user-management.mdx
+++ b/web/docs/library/user-management.mdx
@@ -10,7 +10,8 @@ import {
login,
userData,
logout,
-} from './examples/users'
+ errorHandling,
+} from '../../src/examples/users'
### Introduction
@@ -66,3 +67,11 @@ Get the JSON data for the logged in user.
After calling log out, all interactions using the Supabase JS client will be "anonymous".
+
+### Error handling
+
+<CustomCodeBlock
+ header="Shows how to parse errors returned from the server."
+ js={errorHandling}
+/>
+<br />