mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 15:20:40 +00:00
refactor: extract token validation into reusable method
- Add validateProviderToken() helper method to reduce code duplication - Use request body only ($request->json()->all()) to avoid route parameter conflicts - Add proper logging for token validation failures - Add missing DB import to migration file - Minor test formatting fix 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ beforeEach(function () {
|
||||
$this->team->members()->attach($this->user->id, ['role' => 'owner']);
|
||||
|
||||
// Create an API token for the user
|
||||
$this->token = $this->user->createToken('test-token', ['*'], $this->team->id);
|
||||
$this->token = $this->user->createToken('test-token', ['*']);
|
||||
$this->bearerToken = $this->token->plainTextToken;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user