soundcloud-api-ts-next
    Preparing search index...

    Function useMe

    • Fetch the current authenticated user's profile.

      Requires the user to be authenticated via SoundCloudProvider. Returns null data if not authenticated.

      Returns HookResult<SoundCloudUser>

      Hook result with data as a SoundCloudUser.

      import { useMe } from "soundcloud-api-ts-next";

      function Profile() {
      const { data: me, loading } = useMe();
      if (loading) return <p>Loading...</p>;
      return <p>Logged in as {me?.username}</p>;
      }