$decoded = JWT::decode($jwt[‘HTTP_AUTHORIZATION’][0], $key, array(‘JWT’,‘HS256’));
this returns an error Unexpected control character found
please help me
$decoded = JWT::decode($jwt[‘HTTP_AUTHORIZATION’][0], $key, array(‘JWT’,‘HS256’));
this returns an error Unexpected control character found
please help me
Can we have more details?
It seems to be a json_decode error.
@rbaaboud thanks i just resolved the issue… the decode does not recognize the Bearer keyword… so i have to replace using string replace