Skip to content

Instantly share code, notes, and snippets.

View minhloc2011's full-sized avatar
🎯
Focusing

Lộc minhloc2011

🎯
Focusing
View GitHub Profile
@minhloc2011
minhloc2011 / AccessToken.php
Created October 6, 2022 01:08 — forked from onamfc/AccessToken.php
Add Custom Claims to Passport 8 / Laravel 6
<?php
namespace App\Passport;
use App\User;
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer\Key;
use League\OAuth2\Server\CryptKey;
use Lcobucci\JWT\Signer\Rsa\Sha256;
use Laravel\Passport\Bridge\AccessToken as BaseToken;

Ở đây ví dụ mình có 2 accounts: 1 cho company, 1 cho mình. Thì mình sẽ config trong .ssh/config như thế này:

#Company account (AT account)
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa

#My account (ngot-nuoc account)