Fetch the current authenticated user's profile.
Requires the user to be authenticated via SoundCloudProvider. Returns null data if not authenticated.
null
Hook result with data as a SoundCloudUser.
data
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>;} Copy
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>;}
Fetch the current authenticated user's profile.
Requires the user to be authenticated via SoundCloudProvider. Returns
nulldata if not authenticated.