403 JWT Could not be verified - EBS PubSub

@petedev01

const broadcast = {
  "exp": Math.round(Date.now() / 1000) + 60,
  "user_id": "14900522",
  "role": "external",
  "channel_id": "{{the channel to broadcast to}}",
  "pubsub_perms": {
    "send":[
      "broadcast"
    ]
  }
}
const global = {
  "exp": Math.round(Date.now() / 1000) + 60,
  "user_id": "14900522",
  "role": "external",
  "channel_id": "all",
  "pubsub_perms": {
    "send":[
      "global"
    ]
  }
}
const whisper = {
  "exp": Math.round(Date.now() / 1000) + 60,
  "user_id": "14900522",
  "role": "external",
  "channel_id": "{{the channel that the user is on}}",
  "pubsub_perms": {
    "send":[
      "whisper-{{opaqueID}}"
    ]
  }
}
1 Like