Sending a PubSub Whisper from EBS

Hi,

I did a JWT token, but continue with the same response:

{
“error”: “Forbidden”,
“status”: 403,
“message”: “Error (403): JWT could not be verified”
}

I generated the JWT with this data:

header
{
“alg”: “HS256”,
“typ”: “JWT”
}

payload
{
“exp”: 1609459200,
“opaque_user_id”: “”,
“user_id”: “53672…”,
“channel_id”: “530843…”,
“role”: “external”,
“pubsub_perms”: {
“send”:[
“broadcast”, “whisper-*”
]
}
}

body
{
“message” : “oi”,
“content_type” : “application/json”,
“targets”: [ “whisper-UGwDK1x2Gq9Q7…”]
}

Can you guys give me any more tips?

You did base64 decode your secret before signing your JWT?

I don’t think this is valid, it needs to be the whisper-opaqueID/target

yeahh man!! I wasn’t decoding that… Now it´s working fine!
thank so much