stage 2 of oauth removal, switch to sanctum pat tokens completed, docs updated
This commit is contained in:
@@ -63,27 +63,4 @@ return [
|
||||
'queue' => env('REVENUECAT_WEBHOOK_QUEUE', 'webhooks'),
|
||||
],
|
||||
|
||||
'oauth' => [
|
||||
'tenant_admin' => [
|
||||
'id' => env('VITE_OAUTH_CLIENT_ID', 'tenant-admin-app'),
|
||||
'redirects' => (function (): array {
|
||||
$redirects = [];
|
||||
|
||||
$devServer = env('VITE_DEV_SERVER_URL');
|
||||
$redirects[] = rtrim($devServer ?: 'http://localhost:5173', '/').'/event-admin/auth/callback';
|
||||
|
||||
$appUrl = env('APP_URL');
|
||||
if ($appUrl) {
|
||||
$redirects[] = rtrim($appUrl, '/').'/event-admin/auth/callback';
|
||||
} else {
|
||||
$redirects[] = 'http://localhost:8000/event-admin/auth/callback';
|
||||
}
|
||||
|
||||
$extra = array_filter(array_map('trim', explode(',', (string) env('TENANT_ADMIN_OAUTH_REDIRECTS', ''))));
|
||||
|
||||
return array_values(array_unique(array_filter(array_merge($redirects, $extra))));
|
||||
})(),
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user