Getting rcsdk.platform(...).authUrl is not a function

  • 1
  • Problem
  • Updated 9 months ago
Trying to use the tuorial in the URL https://ringcentral-tutorials.github.io/oauth-js-demo/?distinctId=16197bcf10a97-0973e5a0d1373-a35346... which has the rcsdk.platform().authUrl({            redirectUri: this.config['RC_APP_REDIRECT_URL']
        }) code in index.html. So when i try to get the access token i get  rcsdk.platform(...).authUrl is not a function
Photo of Angad Kaflay

Angad Kaflay

  • 70 Points

Posted 9 months ago

  • 1
Photo of Embbnux Ji

Embbnux Ji

  • 270 Points 250 badge 2x thumb
Hi, Angad. It seems the demo code is outdated. Please try `rcsdk.platform(...). loginUrl`  https://github.com/ringcentral/ringcentral-js#login
(Edited)