I came across a "Bearer" Authentication in the header of a HTTP request (I want to understand an API) that I want to replicate.
This is the header field:
authentication : Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9eyJhdXRoX3Rva2VuIjoiNzgzYmFjNjA5MmRmIiwiaWQiOjgxLCJpc3N1ZWRUaW1lIjoxNjYzMjM2MDY2LjU5Mn0=.ue-WEprMVaRe7-weCxqZ8UHq7KR5XufhEliAzAsDM03
I understand that the first part after the word "Bearer", up to the dot, is a base64 encoded json with a token (that I have) and some meta information. But I cannot make sense of the part after the dot. What kind of encoding is this? When I send the request I get a message telling be that the JWT is invalid:
{"message":"Unauthorized call: Invalid JWT","data":{"message":"auth_check_fail"},"code":401}
Any help is much appreciated.