Skip to content

Commit a04f989

Browse files
authored
Fix missing WORKOS_API_KEY registration
fixes laravel/framework#55028
1 parent a1586b4 commit a04f989

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WorkOS.php

+5
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,18 @@ public static function configure(): void
2020
{
2121
if (! config('services.workos.client_id')) {
2222
throw new RuntimeException("The 'services.workos.client_id' configuration value is undefined.");
23+
}
24+
25+
if (! config('services.workos.secret')) {
26+
throw new RuntimeException("The 'services.workos.secret' configuration value is undefined.");
2327
}
2428

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)