Create token issue
irmuunM opened this issue · comments
Passport Version
^10.0
Laravel Version
^8.0
PHP Version
8.0.13
Database Driver & Version
5.7.41
Description
Call to a member function forceFill() on null
$user->createToken('foo-bar')->accessToken;
contains error which is
$token = tap($this->findAccessToken($response), function ($token) use ($userId, $name) {
$this->tokens->save($token->forceFill([
'user_id' => $userId,
'name' => $name,
]));
});
there sometimes gives error commonly working fine but sometimes gives error is there any good solution except retry
Steps To Reproduce
$token = tap($this->findAccessToken($response), function ($token) use ($userId, $name) {
$this->tokens->save($token->forceFill([
'user_id' => $userId,
'name' => $name,
]));
});
Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.
Thanks!