Firebase JWT Decoding issue


#1

$decoded = JWT::decode($jwt[‘HTTP_AUTHORIZATION’][0], $key, array(‘JWT’,‘HS256’));

this returns an error Unexpected control character found

please help me


#2

Can we have more details?

It seems to be a json_decode error.


#3

@rbaaboud thanks i just resolved the issue… the decode does not recognize the Bearer keyword… so i have to replace using string replace