Skip to content

Commit

Permalink
Update owner
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslawww committed Sep 10, 2023
1 parent 10c9c83 commit f5d3539
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
12 changes: 9 additions & 3 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
The MIT License (MIT)

Copyright (c) Yaroslav Georgitsa yaroslav.georgitsa@gmail.com
Copyright (c) Think Studio dev@think.studio

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Another laravel jwt auth

[![Packagist License](https://img.shields.io/packagist/l/yaroslawww/laravel-jwt-auth?color=%234dc71f)](https://github.com/yaroslawww/laravel-jwt-auth/blob/master/LICENSE.md)
[![Packagist Version](https://img.shields.io/packagist/v/yaroslawww/laravel-jwt-auth)](https://packagist.org/packages/yaroslawww/laravel-jwt-auth)
[![Build Status](https://scrutinizer-ci.com/g/yaroslawww/laravel-jwt-auth/badges/build.png?b=master)](https://scrutinizer-ci.com/g/yaroslawww/laravel-jwt-auth/build-status/master)
[![Code Coverage](https://scrutinizer-ci.com/g/yaroslawww/laravel-jwt-auth/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/yaroslawww/laravel-jwt-auth/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yaroslawww/laravel-jwt-auth/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/yaroslawww/laravel-jwt-auth/?branch=master)
![Packagist License](https://img.shields.io/packagist/l/think.studio/laravel-jwt-auth?color=%234dc71f)
[![Packagist Version](https://img.shields.io/packagist/v/think.studio/laravel-jwt-auth)](https://packagist.org/packages/think.studio/laravel-jwt-auth)
[![Total Downloads](https://img.shields.io/packagist/dt/think.studio/laravel-jwt-auth)](https://packagist.org/packages/think.studio/laravel-jwt-auth)
[![Build Status](https://scrutinizer-ci.com/g/dev-think-one/laravel-jwt-auth/badges/build.png?b=main)](https://scrutinizer-ci.com/g/dev-think-one/laravel-jwt-auth/build-status/main)
[![Code Coverage](https://scrutinizer-ci.com/g/dev-think-one/laravel-jwt-auth/badges/coverage.png?b=main)](https://scrutinizer-ci.com/g/dev-think-one/laravel-jwt-auth/?branch=main)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/dev-think-one/laravel-jwt-auth/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/dev-think-one/laravel-jwt-auth/?branch=main)

Another laravel jwt auth package. \
This package has very slow support, you might be better off switching to an older and more used
Expand All @@ -14,19 +15,19 @@ package: [tymon/jwt-auth](https://github.com/tymondesigns/jwt-auth)

Install the package via composer:

```bash
composer require yaroslawww/laravel-jwt-auth
```shell
composer require think.studio/laravel-jwt-auth
```

You can publish the config file with:

```bash
```shell
php artisan vendor:publish --provider="JWTAuth\ServiceProvider" --tag="config"
```

You can publish migrations:

```bash
```shell
php artisan vendor:publish --provider="JWTAuth\ServiceProvider" --tag="migrations"
```

Expand All @@ -40,7 +41,7 @@ php artisan jwt:keys:generate

Update auth configuration

```injectablephp
```php
// config/auth.php
'guards' => [
// ...
Expand All @@ -57,7 +58,7 @@ Update auth configuration

Update User model

```injectablephp
```php
use Illuminate\Foundation\Auth\User as Authenticatable;
use JWTAuth\Contracts\WithJwtToken;

Expand All @@ -72,7 +73,7 @@ class User extends Authenticatable implements WithJwtToken

Login

```injectablephp
```php
/** @var \JWTAuth\JWTGuard $auth */
$auth = Auth::guard('my_api_guard_name');
$token = $auth->attempt($request->only( 'email', 'password'));
Expand All @@ -85,7 +86,7 @@ if ($token) {

Logout

```injectablephp
```php
if(Auth::guard('my_api_guard_name')->check()) {
Auth::guard('my_api_guard_name')->logout();
}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "yaroslawww/laravel-jwt-auth",
"name": "think.studio/laravel-jwt-auth",
"description": "Another laravel jwt auth package.",
"keywords": [
"laravel",
"jwt",
"auth"
],
"homepage": "https://github.com/yaroslawww/laravel-jwt-auth",
"homepage": "https://github.com/dev-think-one/laravel-jwt-auth",
"license": "MIT",
"authors": [
{
"name": "Yaroslav Georgitsa",
"email": "yaroslav.georgitsa@gmail.com",
"email": "yg@think.studio",
"homepage": "https://github.com/yaroslawww",
"role": "Developer"
}
Expand Down

0 comments on commit f5d3539

Please sign in to comment.