Skip to content

Commit 0344ae2

Browse files
authored
Merge c6ad3a1 into 4fa91e5
2 parents 4fa91e5 + c6ad3a1 commit 0344ae2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

config/firebase.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@
1717
*/
1818
'projects' => [
1919
'app' => [
20+
21+
/**
22+
* ------------------------------------------------------------------------
23+
* Firebase Authentication
24+
* ------------------------------------------------------------------------
25+
*/
26+
27+
'authentication' => [
28+
'tenant_id' => env('FIREBASE_TENANT_ID'),
29+
],
30+
2031
/*
2132
* ------------------------------------------------------------------------
2233
* Credentials / Service Account

src/FirebaseProjectManager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ protected function configure(string $name): FirebaseProject
6161

6262
$config = $this->configuration($name);
6363

64+
if ($tenantId = $config['authentication']['tenant_id'] ?? null) {
65+
$factory = $factory->withTenantId($tenantId);
66+
}
67+
6468
if ($credentials = $config['credentials']['file'] ?? null) {
6569
$resolvedCredentials = $this->resolveCredentials((string) $credentials);
6670

0 commit comments

Comments
 (0)