Open MinhQuanGRF opened 1 week ago
@embbnux Could you please assist?
hi @MinhQuanGRF do you pass your redirect uri to Embeddable? https://ringcentral.github.io/ringcentral-embeddable/docs/config/redirect-uri/ The code needs to be matched with redirect uri in the widget.
I have tried:
postMessage({
type: 'rc-adapter-authorization-code',
callbackUri: `https://apps.ringcentral.com/integration/ringcentral-embeddable/latest/redirect.html?code=${code}`,
});
However it also fails:
But if I use rc-adapter-login
, I can still login:
Do you notice what problem I'm having?
Hi @MinhQuanGRF can you show how you get the code? If you get the code from your own redirect URI, you need to pass your redirect uri to the widget following the document that I share in last comment
I'm processing the login, and getting the authorization code. I then authorize that code by:
then got error:
even though the link
http://localhost:3000/admin/ring-central-mobile
has been added by me to the OAuth Redirect URI