Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add scope_enforcement config option

+14
+14
config/client.php
··· 111 111 'sleep' => env('ATP_HTTP_RETRY_SLEEP', 100), 112 112 ], 113 113 ], 114 + 115 + /* 116 + |-------------------------------------------------------------------------- 117 + | Scope Enforcement 118 + |-------------------------------------------------------------------------- 119 + | 120 + | Configure how scope requirements are enforced. Options: 121 + | - 'strict': Throws MissingScopeException if required scopes are missing 122 + | - 'permissive': Logs a warning but attempts the request anyway 123 + | 124 + */ 125 + 'scope_enforcement' => \SocialDept\AtpClient\Enums\ScopeEnforcementLevel::tryFrom( 126 + env('ATP_SCOPE_ENFORCEMENT', 'permissive') 127 + ) ?? \SocialDept\AtpClient\Enums\ScopeEnforcementLevel::Permissive, 114 128 ];