Hooks

useCurrentUserEmail()

The useCurrentUserEmail() hook returns the current user's email, sourced from the user_metadata.email property populated automatically by Supabase Auth. If the user is logged out or isn't able to fetch the user email, the hook returns user@email.com.

Unlock full documentation

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

On this page