question

Benny Dadon avatar image
Benny Dadon asked Suyash Joshi edited

Javascript 3 legged authorization

I just follow these steps and got error
https://developers.ringcentral.com/guide/authentication/quick-start#javascript

1638801129796.png

my index.js file is here

1638801624818.png


authentication
1638801129796.png (10.3 KiB)
1638801624818.png (104.4 KiB)
1 |3000

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

Phong Vu avatar image
Phong Vu answered Phong Vu commented

What is the error? The express-session deprecated warning is not an error and does not stop the app. To eliminate the warning, follow the answers from this thread.

https://stackoverflow.com/questions/28839532/node-js-session-error-express-session-deprecated/34744627

7 comments
1 |3000

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

If this not stop the app then why app not show next anything just stop here

1638819527447.pngAny issue in it?

0 Likes 0 ·
1638819527447.png (13.0 KiB)

If I hit from broswer then show error.

1638819677993.png

0 Likes 0 ·
1638819677993.png (34.9 KiB)

Which meant that you did not read the entire quick start and implement the index.ejs and the test.ejs files.

https://developers.ringcentral.com/guide/authentication/quick-start

screen-shot-2021-12-06-at-115501-am.png

0 Likes 0 ·

Thanks for the feedback I create a views folder and move index.ejs and test.ejs into the view folder but still got error.

1638863211153.png

My project folder

1638863267999.png

views folder

1638863349710.png

0 Likes 0 ·
1638863211153.png (34.1 KiB)
1638863267999.png (13.3 KiB)
1638863349710.png (10.6 KiB)
Show more comments
Suyash Joshi avatar image
Suyash Joshi answered Suyash Joshi edited

Hi @Benny Dadon I was able to successfully follow the RingCentral tutorial and build this app. I packaged this demo into a simple node.js app. You can clone and run it, just follow the steps as described in the README. Demo App: https://github.com/suyashjoshi/ringcentral-js-auth

1 |3000

Up to 8 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