muxinc/mux-node-sdk

Unauthorised request when creating live stream

Closed this issue · 1 comments

Using the v8 package, I am doing

const mux = new Mux({
    tokenId: ENV_VARS.MUX_TOKEN_ID,
    tokenSecret: ENV_VARS.MUX_TOKEN_SECRET,
});

And then

return await mux.video.liveStreams.create({
          playback_policy: ['public'],
          new_asset_settings: { playback_policy: ['public'] },
        });

But I get an unauthorised request response. Made a new access token as well, with Mux Video Write settings.

Nevermind, token values were not being passed through correctly.