Allow user to login via redirection instead of popup window.
tylerlong opened this issue · 2 comments
tylerlong commented
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.
embbnux commented
Yes, we support this. You can follow this https://github.com/ringcentral/ringcentral-js/tree/master/sdk#top-frame-with-pkce-setup
tylerlong commented
Confirmed that it works.