Closed
Description
I've configured
// public key
$key = "**********";
$token = array(
//The issuer of the token
"iss" => "https://login.uat.telenet.be/openid",
//The audience of the token
"aud" => "benu",
//“Issued at” time, in Unix time, at which the token was issued
"iat" => 1491506544,
//“Not before” time that identifies the time before which the JWT must not be accepted for processing
"nbf" => 1357000000
);
I've tried
$jwt = JWT::encode($token, $key);
$decoded = JWT::decode($jwt, $key, array('HS256'));
dd($decoded);
I got
{#648 ▼
+"iss": "https://login.uat.telenet.be/openid"
+"aud": "benu"
+"iat": 1491506544
+"nbf": 1357000000
}
I only get the data that I configured in my $token array.
I don't want that.
How do I get my payload data also ?
Did I do anything wrong ?
Metadata
Metadata
Assignees
Labels
No labels