tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.3k stars 1.54k forks source link

How to install in laravel 7? #1981

Open nikoz84 opened 4 years ago

nikoz84 commented 4 years ago

I'm try to add this library for autheticate my users with laravel 7.5 i follow the documentation but when send the token via Authorization in my middleware the request header are null. The token is created when attempt the users credential, but when send the request i get this errors Could not decode token: Error while decoding to JSON: Malformed UTF-8 characters, possibly incorrectly encoded

Laravel

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 7.5
Package version 1.0
PHP version 5.x.y / 7.4.3

Steps to reproduce

Captura de Tela (258)

Captura de Tela (263)

Captura de Tela (264)

Captura de Tela (259)

Captura de Tela (260)

Captura de Tela (262)

Captura de Tela (256)

Captura de Tela (265)

faizananwerali commented 4 years ago

Following

aligajani commented 4 years ago

Works for me

ShaileshInfyom commented 4 years ago

https://youtu.be/VtAxYez4ZdQ here is tutorial

thaifani commented 4 years ago

not work with laravel 7

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.