jwt icon indicating copy to clipboard operation
jwt copied to clipboard

Allow encoding JsonWebToken objects using __toString()

Open gabesullice opened this issue 7 years ago • 1 comments

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

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

Thoughts @jonathangreen @bradjones1 ?

gabesullice avatar Mar 24 '17 19:03 gabesullice

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

ebremer avatar Oct 23 '18 19:10 ebremer