Fix: Correctly set session for team before creating user token
This commit is contained in:
parent
700550b26f
commit
a5331db179
1 changed files with 2 additions and 1 deletions
|
|
@ -16,7 +16,8 @@
|
|||
$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);
|
||||
session(['currentTeam' => $this->team]);
|
||||
$this->token = $this->user->createToken('test-token', ['*']);
|
||||
$this->bearerToken = $this->token->plainTextToken;
|
||||
|
||||
// Create a Hetzner cloud provider token
|
||||
|
|
|
|||
Loading…
Reference in a new issue