@Dev , I believe you’re referring to the Azure doc ‘prerequisites’ section in the document.
To rectify 401 unauthorized error, kindly re-verify that you have a valid access token.
- Once you have an access token, you should be able to reuse it as long as it has not expired (24 hours).
- 'Record' in this context means just to keep a note/keep in mind, it is required for the creation of the client.
I have shared your feedback with the content author to review and we'll update the doc as necessary to more clarity.
Uri endpoint = new Uri("https://<RESOURCE_NAME>.communication.azure.com");
CommunicationUserCredential communicationUserCredential = new CommunicationUserCredential(<Access_Token>);
ChatClient chatClient = new ChatClient(endpoint, communicationUserCredential);