Session-Key doesn't match user_id (Flutter, Chat)

Hi!

We are intermittently facing an issue when users connect to sendbird server.
Afterwards, trying to load the list of available channels we get the following message Not authorized. "Session-Key doesn’t match user_id

Any idea why can this happen?

What is the expiration time of the session key managed by SDK?
Also, is there a way I can refresh this session key?

Thank you.

Hi @SungYong_Ko,

You shouldn’t be running into this type of issue with normal usage. Is it happening to a specific user or many users? Additionally, how long after the user connects does this appear to happen?

Now we have a few active user. It is happening to two user.
Looking at the log, one user had an issue 17 hours after the app was booted.

We call “sendbird.connect(userId)” when app boots. We call “sendbird.disconnect” only when the user logs out. Is that wrong?

Hi @SungYong_Ko, what you’ve described doesn’t sound wrong by any means. You should be calling disconnect() when the user no longer needs to be connected to Sendbird. Just to confirm, the user logged into the app, was actively connected for 17 hours, and then received the error?

Hi @Tyler
I’m sorry. I gave you the wrong information.
Currently, we don’t know the exact information about how long it has been since the user connected.
Instead, I can give the user’s ID and time information of the problem. (This is my ID.)
I DM you.