@urbackend/react SDK exports several hooks to make it easy to access authentication state and perform database/storage operations within your components.
All hooks require your component to be mounted somewhere inside the <UrProvider>.
useUser()
The easiest way to read the current authenticated user’s profile and state.
useAuth()
Provides access to authentication methods like login, signup, and logout.
useDb()
Provides direct access to the urBackend database client. Operations are automatically authenticated with the current user’s session token for Row-Level Security (RLS).
