Hooks

useCurrentUserName()

The useCurrentUserName() hook returns the current user's name, sourced from the user_metadata.full_name property populated automatically by Supabase Auth. If the user is logged out or isn't able to fetch the user name, the hook returns null.

Unlock full documentation

This part of the documentation are for members only. Please upgrade your plan to unlock this section.

On this page