ringcentral/ringcentral-js

Allow user to login via redirection instead of popup window.

tylerlong opened this issue · 2 comments

https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0

As mentioned in the article:

var loginUrl = rcsdk.loginUrl({ usePKCE: true }); 
rcsdk.loginWindow({url: loginUrl}) // will popup login window

...

However, some customer use redirection instead of popup window for login. So it doesn't work for them.
I suggest to expose the codeVerifier variable to end developer, such as rcsdk.codeVerifier so that they could make redirection work.

Confirmed that it works.