Jwt-auth: how long wait for 1.0 version docment ?

Created on 4 Apr 2018  路  4Comments  路  Source: tymondesigns/jwt-auth

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

Most helpful comment

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

All 4 comments

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

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

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

It's in the docs.

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

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

Was this page helpful?
0 / 5 - 0 ratings