gabesullice / jwt

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

Allow encoding JsonWebToken objects using __toString() #12

Open gabesullice opened 7 years ago

gabesullice commented 7 years ago

I would like to be able to write code like so:

$token = new JsonWebToken();
$encoded = (string) $token;

Thoughts @jonathangreen @bradjones1 ?

ebremer commented 6 years ago

@gabesullice Would this be an alternate PHP way to get a jwt rather than the /jwt/token endpoint?