Hooks

useCurrentUserImage()

The useCurrentUserImage() hook returns the current user's profile image URL, sourced from the user_metadata.avatar_url property populated automatically by Supabase Auth. If the user is logged out or has no profile image, 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