Skip to main content

useCurrentUser

The useCurrentUser hook fetches the Shop app user's profile information including display name and avatar image URL. Use this for personalizing the UI, displaying user info in headers/profiles, or conditionally showing features based on authentication status.

Caution

This hook requires adding the following scopes to the manifest file:

user_settings:read

For more details, see manifest.json.

Anchor to params
params


Was this page helpful?