Sanity App SDK
    Preparing search index...

    This should not return null — users of a custom app will always be authenticated via Core

    • Provides the currently authenticated user’s profile information.

      Returns null | CurrentUser

      The current user data

      const user = useCurrentUser()

      return (
      <figure>
      <img src={user?.profileImage} alt=`Profile image for ${user?.name}` />
      <h2>{user?.name}</h2>
      </figure>
      )