Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Lộc minhloc2011

🎯
Focusing
View GitHub Profile
@minhloc2011
minhloc2011 / AccessToken.php
Created Oct 6, 2022 — forked from onamfc/AccessToken.php
Add Custom Claims to Passport 8 / Laravel 6
View AccessToken.php
<?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;
View Multiple git accounts.md

Ở đâ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)