Azure / Azure/Communication

[Android] Calling SDK crash for invalid ACS token

Open
#411 2 comments 0 reactions 0 assignees View on GitHub
Bug Needs: triage :mag:
Dominant language
No language data
Stars
340
Forks
113
PR merge metrics
No merged PRs in 30d

Description

For invalid ACS token, calling SDK crash with below message.
E/com.azure.android.communication.common.AutoRefreshUserCredential: java.lang.IllegalArgumentException: 'tokenStr' is not a valid token string

It will be great if SDK can provide handler to catch this error.

Steps:
The issue can be reproduced by injecting invalid function in CommunicationTokenRefreshOptions that returns invalid token.

val communicationTokenRefreshOptions = CommunicationTokenRefreshOptions(::getToken, true)
private fun getToken(): String {
return "token!!"
}

Version: com.azure.android:azure-communication-calling:1.2.1-beta.1
Device: Google Pixel 4a (Android 12)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.