Ensure tokens are found in the database using the expected logic
This commit is contained in:
parent
e9c633fd03
commit
f7fc67344e
5 changed files with 39 additions and 25 deletions
|
@ -25,7 +25,7 @@ class ApiKeyFactory extends Factory
|
|||
|
||||
return [
|
||||
'key_type' => ApiKey::TYPE_APPLICATION,
|
||||
'identifier' => Str::random(ApiKey::IDENTIFIER_LENGTH),
|
||||
'identifier' => ApiKey::generateTokenIdentifier(),
|
||||
'token' => $token ?: $token = encrypt(Str::random(ApiKey::KEY_LENGTH)),
|
||||
'allowed_ips' => null,
|
||||
'memo' => 'Test Function Key',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue