Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit b8e8b86

Browse files
committed
Fixed BeeAuth credentials on Laravel service provider
1 parent 9e16aa3 commit b8e8b86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ If you use Laravel, `BeePluginServiceProvider` will be auto-registered if you us
104104
],
105105
```
106106

107-
This will make that any time you ask Laravel for `KirschbaumDevelopment\Bee\Bee` or `KirschbaumDevelopment\Bee\BeeAuth` using the Laravel container (e.g. `app(Bee::class)`), Guzzle will be automatically injected and also the API token and Client ID/Secret will be injected into the classes.
107+
This will make sure that any time you ask Laravel for `KirschbaumDevelopment\Bee\Bee` or `KirschbaumDevelopment\Bee\BeeAuth` using the Laravel container (e.g. `app(Bee::class)`), Guzzle will be automatically injected and also the API token and Client ID/Secret will be injected into the classes.
108108

109109
The config values will be extracted from the following config: `.services.bee`. So, we'll use the following conventions:
110110

src/Laravel/BeePluginServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public function boot()
2525
$client = new BeeAuth(resolve(Client::class));
2626

2727
if (config('services.bee.client_id')) {
28-
$client->setApiToken(config('services.bee.client_id'));
28+
$client->setClientId(config('services.bee.client_id'));
2929
}
3030

3131
if (config('services.bee.client_secret')) {
32-
$client->setApiToken(config('services.bee.client_secret'));
32+
$client->setClientSecret(config('services.bee.client_secret'));
3333
}
3434

3535
return $client;

0 commit comments

Comments
 (0)