Failure to obtain token results in an infinite loop #3424
Labels
🐞 Bug
An issue or PR related to a bug
🌐 SDK: StreamChat (LLC)
Tasks related to the StreamChat LLC SDK
What did you do?
I have the following
tokenProvider
in my app:If the
authRepository.chatToken()
fails with, for example, a 401 error, the stream chat will start repeatedly calling thetokenProvider
and failing.What did you expect to happen?
The completion handler of the
connectUser
to be called with an error. Or a way to break out of the loop.What happened instead?
An infinite loop.
GetStream Environment
GetStream Chat version: 4.52.0
GetStream Chat frameworks: StreamChat, StreamChatUI
iOS version: 17.5.1
Swift version: 5.8.1
Xcode version: 15.3
Device: iPhone 12
The text was updated successfully, but these errors were encountered: