I would like to be able to send the state when I call LoginWindow. I can not find any documentation on the SDK. How do I pass in a state for the OAuth?
RC.state = utils.uuid(); var rcsdk = new RingCentral.SDK({ server: RingCentral.SDK.server.sandbox, clientId: RC.RingCentralClientID , clientSecret: RC.RingCentralClientSecret, redirectUri: RC.RingCentralRedirectURL, // optional, but is required for Implicit Grant and Authorization Code OAuth Flows (see below) state: RC.state }); console.log(RC.state); var loginUrl = rcsdk.loginUrl({implicit: false}); // implicit parameter is optional, default false console.log(loginUrl);
This does not work, st the URL does not have the state in it, or is it passed back to the Redirect URL.