gabesullice / jwt

https://www.drupal.org/project/jwt
18 stars 12 forks source link

Make the process for creating new tokens easier. #13

Open gabesullice opened 7 years ago

gabesullice commented 7 years ago

I would like to write code like so:

$payload = [
  'my' => 'custom claims',
];
$token = JsonWebToken::create($payload);

cc: @bradjones1 @jonathangreen