tymondesigns / jwt-auth

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

how long wait for 1.0 version docment ? #1542

Open huaiguoguo opened 6 years ago

huaiguoguo commented 6 years ago

Subject of the issue

Describe your issue here.

how long wait for 1.0 version docment ?

Your environment

Q A
Bug? no / yes i don't know
New Feature? no / yes no
Framework Laravel / Lumen laravel
Framework version 5.x.y 5.6
Package version 1.x.y 1.0.0-rc.2
PHP version 5.x.y / 7.x.y 7.2.3 nts 64bit

Steps to reproduce

Tell us how to reproduce this issue. image

image

image

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

jamesdb commented 6 years ago

Try using auth('api')->attempt($credentials) instead.

josh9060 commented 6 years ago

The actual way to do this would be setting the deafult driver to API.

'defaults' => [
    'guard' => 'api',
    'passwords' => 'users',
],

It's in the docs.

aligajani commented 6 years ago

@Joshgallagher How do I use this with the latest version of Laravel, 5.6+

shijunti19 commented 6 years ago

@Joshgallagher He will affect the web pattern Official pits should not modify any default values