Invalid payload string: 'utf-8' codec can't decode byte 0x8d in position 0: invalid start byte

Hi,

I am using FastAPI on the backend and VueJS for Frontend. I followed this documentation to validate JWT token. However, it gives this response below. I using the all necessary environment from my Auth0 Application. Also, I am passing the JWT without Bearer keyword.

{
“status”: 403,
“detail”: “Invalid payload string: ‘utf-8’ codec can’t decode byte 0x8d in position 0: invalid start byte”
}

I generate the JWT like this from the VueJS application.

const JWTBearer = await getAccessTokenSilently();

Look forward to your help.

Thanks

Thanks

1 Like

For anyone facing this same issue, I found the solution here: Invalid access token payload, jwt encrypted with A256GCM