You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manipulate the string by removing blank and /r characters, then retrieve position start of open curly brackets.
$res=preg_replace('/\s+/', '',$body);
$res = substr($res, strpos($res, "{"), strpos($res, "}")); //start from position of open curly bracket till the end of curly bracket , you can trim the third param if you want. It's just for semantic purpose. :)
$token = json_decode( $res, true );
If someone can give a greater solution, maybe can post here.
Here is CustomerTokenAuthController@issueToken function
The text was updated successfully, but these errors were encountered: