-
Notifications
You must be signed in to change notification settings - Fork 2
creating a session and login slow in connectycube idp #3
Description
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.
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.
Please help me to optimize this. what can I do to reduce the time here?
Thanks in Advance.

