Skip to content

How to get the payload data ?  #146

Closed
@bunlongheng

Description

@bunlongheng

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions