Skip to content

Simple JWT Auth that provide two routes `/login` and `/me`

License

Notifications You must be signed in to change notification settings

wargas/laravel-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About Package

Simple JWT Auth that provide two routes /login and /me

Configuration

Add a guard named api with a driver api to config/auth.php.

Example:

'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
        "api" => [
            'driver' => 'api'
        ]
        ...
    ],

Add the middleare auth:api for routes you want to protect

Example:

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

Simple JWT Auth that provide two routes `/login` and `/me`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages