Commit 3c270dd
authored
fix: do not disconnect and connect when the accessToken is changed (#969)
## Description
1. When the `accessToken` is changed, `disconnect` and `connect` are
called again.
2. If the customer controls the `accessToken`, the session_key refresh
performed by the SDK is canceled(API request cancel) due to the
`disconnect` triggered in (1).
3. Even if the `accessToken` has already expired, it is refreshed by the
SDK(**SessionHandler**). Therefore, UIKit does not need to rely on this
value to handle the connect logic.
ticket: [CLNP-2257]
[CLNP-2257]:
https://sendbird.atlassian.net/browse/CLNP-2257?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ1 parent 894949a commit 3c270dd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments