Setting a Document ID

You can set a user’s Document ID by using the useSetDocumentId hook:

useSetDocumentId('unique-document-id');