DEV Community

Discussion on: How to retrieve tokenID from acess_token (Personal Access Token)

Collapse
 
tr1pp0 profile image
Alberto Peripolli

Laravel 8/9

use Lcobucci\JWT\Parser as JwtParser;

app(JwtParser::class)->parse($token)->claims()->get('jti');