Giter VIP home page Giter VIP logo

jwt-guard's Introduction

JWT Guard

tymon/jwt-auth:0.5* 패키지에 라라벨 커스텀 AuthGuard 드라이버를 추가하는 포크 입니다. 라라벨 5.4 미만에서 'jwt' 드라이버를 설정하면 auth() 헬퍼 함수 등을 사용할 수 있습니다.

This is a fork of tymon/jwt-auth:0.5* package to support AuthGuard custom driver. Below Laravel 5.4, It help you using auth('api') helper or middleware('auth:api') before use this please watch Laravel Document then check how to change auth driver.

Install

composer require tymon/jwt-auth korodo/jwt-guard:dev-master

Register Service Providers

config/app.php

    'providers'=>[
        ...
        App\Providers\RouteServiceProvider::class,
        \Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
        \Korodo\JWTGuard\JWTGuardServiceProvider::class,
        ...
    ]

config/auth.php

'guards' => [
    ...
    'api' => [
        'driver' => 'jwt', // it was token
        'provider' => 'users',
    ],
    ...
],
php artisan jwt:generate

License

The MIT License (MIT). Please see License File for more information.

jwt-guard's People

Contributors

evans-kim avatar yupmin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

yupmin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.