Feb 26, 2024
0
Level 1
Laravel passport createToken doesn't include refresh token
Hello, I am working on nextjs project with laravel as my backend service. When I tried to get accessToken for a login user using user()->createToken(), it only return accessToken but not refresh token. And the refresh token is not created in the database either.
this is my code: $personal_access_token = $user->createToken("{$user->name}'s Access Token")->accessToken;
Please or to participate in this conversation.