Using this code to try and authenticate the SDK.
import { SDK } from "@ringcentral/sdk";
export default async function fetchRingCentralData() {
const rcsdk = new SDK({
server: process.env.RC_SERVER,
appKey: process.env.RC_CLIENTID,
appSecret: process.env.RC_CLIENTSECRET,
});
const platform = rcsdk.platform();
await platform.login({ jwt: process.env.RC_JWT });
}
Receiving error
Error: Client authentication is required
The app is set up as a JWT app.
Can someone help?