Skip to content

Commit 03d8a35

Browse files
Fix missing WORKOS_API_KEY registration (#7)
* Fix missing `WORKOS_API_KEY` registration fixes laravel/framework#55028 * Fix code styling * wip * Update WorkOS.php --------- Co-authored-by: crynobone <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent d5d64f0 commit 03d8a35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WorkOS.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@ public static function configure(): void
2222
throw new RuntimeException("The 'services.workos.client_id' configuration value is undefined.");
2323
}
2424

25+
if (! config('services.workos.secret')) {
26+
throw new RuntimeException("The 'services.workos.secret' configuration value is undefined.");
27+
}
28+
2529
if (! config('services.workos.redirect_url')) {
2630
throw new RuntimeException("The 'services.workos.redirect_url' configuration value is undefined.");
2731
}
2832

2933
SDK::setClientId(config('services.workos.client_id'));
34+
SDK::setApiKey(config('services.workos.secret'));
3035
}
3136

3237
/**

0 commit comments

Comments
 (0)