Skip to content

creating a session and login slow in connectycube idp #3

@prashant-kumar-src

Description

@prashant-kumar-src

Hi,
I'm using a custom id server for our user authentication, which is working fine but the issue is it takes around 10-15 sec. to validate the user at connecty-cube's end.

I dig into the code and found its 3 step process to initiate a chat using connecty-cube, steps are as follow:
step 1: create a session for the user using createSession function which returns a token.
step 2: make login call to connectycube using IP_user_token and session_token returned in step 1.
step 3: Use ConnectyCube.chat.connect() with connectyCubeUserId and step 1 token.

image

now, I logged the time taken by each step to complete, turns out
step 1 takes around 5 to 7 secs,
step 2 takes around 1 sec and
step 3 takes approx 8-10 secs.

image

Please help me to optimize this. what can I do to reduce the time here?

Thanks in Advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions