question

Suresh Gonepudi avatar image
Suresh Gonepudi asked ·

Automatically logging out from the RingCentral Embeddable Widget after some time in Production

We are using RingCentral Embeddable Widget in Production.The agents are getting logged out suddenly after some time.Can you please suggest the solution. Is Ring central session need to be increased, Is it true? If true is there any cost involved? how we need to proceed please suggest...

session time out
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Embbnux Ji avatar image
Embbnux Ji answered ·

Hi Suresh, can you check which authorization grant flow are you using, authorization code flow or implicit grant flow?

https://github.com/ringcentral/ringcentral-embeddable/blob/master/docs/config-client-id-and-secret.md

For implicit grant flow, login session will be expired if user is inactive in 1 hour.

For authorization code grant flow, login session will be expired if user is inactive in 7 days.

When user or admin change password, it will also trigger session expired.

3 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hi Embbnux, I have the same problem.
As I understand the documentation of the widget that refers to the authentication flow, the PKCE is available since version 1.4 and is enabled by default, right?
captura-de-pantalla-2021-07-20-a-las-124527.pngI'm integrating the RingCentral Widget with my website and the session expires after 1 hour, can you help me?

Thank you!

0 Likes 0 ·
Embbnux Ji avatar image Embbnux Ji Adrian Carreon ·

Replied at email, it is a bug for some apps created from some account in some special region. Still in investigation.

0 Likes 0 ·
Embbnux Ji avatar image Embbnux Ji Embbnux Ji ·

Fount the root cause. The app client id for RingCentral Embeddable should be "Web Browser (Javascript)" type. The type "Server/Web" app can't refresh token with auth code with PKCE flow.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys