PHPackages                             diplodocker/auth-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. diplodocker/auth-service

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

diplodocker/auth-service
========================

Laravel JWT auth service package

0.1.2(3y ago)01.5kMITPHPPHP ^7.1.3

Since Oct 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/diplodocker/auth-service)[ Packagist](https://packagist.org/packages/diplodocker/auth-service)[ Patreon](https://www.patreon.com/diplodocker)[ RSS](/packages/diplodocker-auth-service/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

### About

[](#about)

[![Build Status](https://camo.githubusercontent.com/8532c475d03611dc705c1237da9e0c483b0f03e3004d32d1f72bcbb660c9ad42/68747470733a2f2f7472617669732d63692e6f72672f6469706c6f646f636b65722f617574682d736572766963652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/diplodocker/auth-service)[![GitHub issues](https://camo.githubusercontent.com/28fb6f37b12e397deec08957dd961f7fd7fa7740f274c9da983feada6c5458cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6469706c6f646f636b65722f617574682d736572766963652e737667)](https://github.com/diplodocker/auth-service/issues)[![Made for Laravel](https://camo.githubusercontent.com/938042f3770d553d253adb9469a15d72a22fd8bdd7e3a3146dfe414f3735a8c4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d616465253230666f722d6c61726176656c2d6f72616e67652e7376673f7374796c653d666c6174266c6f676f3d4c61726176656c266c6f676f436f6c6f723d666666)](https://laravel.com/)[![PHP from Packagist](https://camo.githubusercontent.com/80715d440e1f4284413bb1be555f16217e2bb48e374fe8a91e3e2ee21a0add92/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6469706c6f646f636b65722f617574682d736572766963652e7376673f636f6c6f723d386139326262266c6f676f3d706870266c6f676f436f6c6f723d666666)](https://camo.githubusercontent.com/80715d440e1f4284413bb1be555f16217e2bb48e374fe8a91e3e2ee21a0add92/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6469706c6f646f636b65722f617574682d736572766963652e7376673f636f6c6f723d386139326262266c6f676f3d706870266c6f676f436f6c6f723d666666)

Laravel JWT auth service package – this is just a wrapper over a `tymon/jwt-auth` package that includes services, controllers and a factory.

Contains:

- Controllers
- Routes
- Services
- Requests
- Factory

### Install

[](#install)

```
composer require diplodocker/auth-service

```

### Configure `User` model

[](#configure-user-model)

- Implement `Diplodocker\Services\Contracts\AuthorizationInterface`
- Use `Diplodocker\Services\Concerns\CanUseAuthorizationTokens` (or implement methods from trait)
- Add `TABLE_NAME` and `ATTR_EMAIL` constants to `User` model

```
