dimanche 12 février 2017

load JWTAuth token from a string in Laravel controller?

If I have a JWTAuth token as a string, that is not passed to a Laravel controller method in the header, but is in a query string, is it possible to decode it to extract custom claim data?

I can create a Tymon\JWTAuth\Token object easily enough:

$infoToken = new Token( $request->get("info") );

But how can I decode it? All of the support for decoding seems to be from the authentication header token that was used to construct the controller.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kh0VPE
via IFTTT

Aucun commentaire:

Enregistrer un commentaire