Skip to main content
You can use the SelectProfile API to record the last used profile of a particular experience.
  • React
  • Node.js
  • GraphQL
import { useSelectProfile } from '@futureverse/asset-register-react/profiles'

const Page = () => {
  const { selectAsync } = useSelectProfile()

  const onClick = async () => {
      const result = await selectAsync({
        experience: 'TTK',
        profileId: 'f9da67a9-db13-49e2-927d-0920110eb4a4',
        owner: '<FUTUREPASS_ADDRESS>',
      })
      
      console.log('result', result)
  }

  return (
    <>
      <button onClick={onClick}>Submit</button>
    </>
  )
}
I