This is JWT Guard for Laravel Application

Installs: 339

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

Type:package

1.0.5 2019-03-24 11:49 UTC

This package is auto-updated.

Last update: 2024-04-25 06:51:24 UTC


README

This is JWT Guard for Laravel Application

.env

To use this package you have to put those variables to your .env file

JWT_SECRET=
JWT_TTL=60
JWT_REFRESH_TTL=20160
JWT_ALGO=HS256

auth.php

You have to switch api driver to jwt

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

    'api' => [
        'driver' => 'jwt',
        'provider' => 'users',
    ],
],