Authentication

Profile APIs require token to be the authentication

You need to use the ProfilesClientProvider to pass in the FuturePass ID Token


import { ProfilesClientProvider } from '@futureverse/asset-register-react/profiles'

const Page = FC<{ children: React.ReactNode }> = ({
  children,
}) => {
  const getFuturepassIdToken = async () => <YOUR_FUTUREPASS_ID_TOKEN>

  return (
    <ProfilesClientProvider
      url={process.env.NEXT_PUBLIC_ASSET_REGISTRY_API_URL}
      authorizationToken={getFuturepassIdToken}>
        {children}
    </ProfilesClientProvider>
  )
}

Last updated

© 2023 -> ♾️