Skip to content

Commit f1d075b

Browse files
authored
Clarify responsibility of disposing credential
1 parent d934793 commit f1d075b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/communication-services/concepts/credentials-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ leaveChatBtn.addEventListener('click', function() {
265265
266266
### Clean up resources
267267
268-
Communication Services applications should dispose the Credential instance when it's no longer needed. Disposing the credential is also the recommended way of canceling scheduled refresh actions when the proactive refreshing is enabled.
268+
Since the Credential object can be passed to multiple Chat or Calling client instances, the SDK will make no assumptions about its lifetime and leaves the responsibility of its disposal to the developer. It's up to the Communication Services applications to dispose the Credential instance when it's no longer needed. Disposing the credential is also the recommended way of canceling scheduled refresh actions when the proactive refreshing is enabled.
269269
270270
Call the `.dispose()` function.
271271

0 commit comments

Comments
 (0)